
the problem is the calculation of the position and length for these case of PIC: 9(03)V99, 999, S99, V99, 99V999
I hope someone can help me please
thx in advance
PS: Excuse my english
Ed Goodman wrote:That SEEMS like such a simple question, but you're in for some studying! You're going to have to learn how the mainframe stores data.
The 'V' is an implied decimal. You won't actually see it in the data, but the program will know that's where the decimal goes.
I just spent a few minutes looking for a good example, and can't find one. What I recommend you do it...write a small cobol program. Put all those variable types in it and have it either display them or write them to a record. Then open the sysout or the file and look at how they are formatted.
Don't forget to use COMP and COMP-3 types.