Hello All,
Please answer for the below scenorio...............
My main program is calling subprogram for every record in a loop. First time when it enters into a subprogram, i set some ws-variable to true
Say 01 WS-VARIABLE PIC X VALUE SPECES
88 WS-VAR VALUE 'S'
In procedure division
SET WS-VAR TO TRUE.
I wont initialize this after setting this flag.
After processing first record, it GO BACK to mainprogram, again coming to subprogram for the second record.
Now what will be the value of WS-VARIABLE?
Practically when i did this, WS-VARIABLE still contains 'S' in this.
Note: My subprogram in REENTRANT Program...........