It had already 220,445. So when i expanded my copybook and used the new one in my program i am getting junk values for the field which i have not changed it.
A pic x(01).
C OCCURS 0 TO 75 TIMES depending on D
B PIC S9(03) COMP-3.
here B is the new variable introduced. But i am getting abend for A variable.
Please help me to see if i am going wrong somewhere.
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
Think of it this way - relative position 1 is the beginning of the first field in your database. I am ASSUMING that you are increasing the length of this segment because you need more occurances for history purposes.