soulcontroller
Programmer
I had a question regarding the REDEFINE clause, I know how to code it:
01 SALES-REC-1.
05 SPERSON-NO-1 PIC X(5).
05 SPERSON-NAME-1 PIC X(20).
05 NO-REC-GROUP PIC 9(3).
05 SALES-AMT REDEFINES NO-REC-GROUP PIC 9(4)V99.
Below is the sample data, the number on the right 002 (no-rec-group) tells you how many records you have. The next two numbers (99999, 78912) are sales-amt. How do you read the correct data into the right field? 00002 JOHN JONES 002
00002 JOHN JONES 99999
00002 JOHN JONES 78912
I'm using NetExpress compiler on PC. Any help would be appreciated.
01 SALES-REC-1.
05 SPERSON-NO-1 PIC X(5).
05 SPERSON-NAME-1 PIC X(20).
05 NO-REC-GROUP PIC 9(3).
05 SALES-AMT REDEFINES NO-REC-GROUP PIC 9(4)V99.
Below is the sample data, the number on the right 002 (no-rec-group) tells you how many records you have. The next two numbers (99999, 78912) are sales-amt. How do you read the correct data into the right field? 00002 JOHN JONES 002
00002 JOHN JONES 99999
00002 JOHN JONES 78912
I'm using NetExpress compiler on PC. Any help would be appreciated.