Post #1
0 votes
Sam
Reputation5
Posts: 28
Joined: 07/01/2026, 02:30 PM
Posted: 08/01/2026, 08:25 AM
01 WS-FLAG PIC X VALUE 'N'.
Is VALUE just the starting value when the program begins? Does it reset every PERFORM?
01 WS-FLAG PIC X VALUE 'N'.
Is VALUE just the starting value when the program begins? Does it reset every PERFORM?
VALUE sets the initial value at program start (WORKING-STORAGE). It does not reapply each PERFORM.
If you need it reset, MOVE the value again yourself, or use INITIALIZE carefully.
You must be signed in to reply to this thread