Post #1
0 votes
Alex
Reputation
8
Posts: 35
Joined: Jun 15, 2026, 9:20 AM
Posted: Jul 23, 2026, 10:16 AM
Need a list of 50 account numbers. In other languages I would use an array. Is that OCCURS?
Need a list of 50 account numbers. In other languages I would use an array. Is that OCCURS?
Yes.
01 WS-ACCT-TABLE.
05 WS-ACCT-NUM PIC 9(8) OCCURS 50 TIMES.
Then WS-ACCT-NUM (3) is the third one. Subscripts start at 1, not 0.
Starting at 1 got me at least twice coming from Java.
You must be signed in to reply to this thread