The value cabn be in hex, int, float. i.e. "1256" , "123.566" , "0xffff" > If you tru;y want a C++ answer, you should post to a C++ newsgroup. We don't do Fortran, COBOL, or Ada here, either. If a C answer will suffice, have a look at the strto* family of functio...
Sorry, OP indeed requires a randomintvalue, but for the simple purpose to share knowledge if you want a randomBigIntegervalue you can use following statement: BigInteger randomVal = BigInteger.Abs(BigInteger.Parse(Guid.NewGuid().ToString().Replace("-",""), NumberStyles.AllowHexSpecifier)); ...
If Enterprise COBOL is available in your shop you can use a new facility called "environment(al?) variables" which you can use to repeatedly open and close the same FD (that defines the PDS, not the directory) and change the member name before each OPEN. See the following link...
Since the number value that is coming from external storage is already edited, you must de-edit it before storing in a COBOL numeric (not numeric edited) data item. This is what I described in the middle of thread209-533708. Please, show us the code, and the sample data. I think that...