I'm using Easytrieve R11. I'm printing a report. After every line is printed I increment a field in that line and print it using AFTER-LINE PROC. But after every new page this particular field that I'm incrementing is being reset to '0'.
Can anyone let me know if there is any option through which I can avoid the resetting of this field. Do I need to change any option in Options table?
The REPORT STATEMENT IS as given below,
REPORT CARD-DATA NOHEADING NOADJUST SPACE 0 PAGESIZE 76
LINE01 WS-1 WS-2 WS-SEQ-NBR
LINE02 WS-3 WS-4 WS-SEQ-NBR
LINE64 WS-10 WS-11 WS-SEQ-NBR
WS-SEQ-NBR = WS-SEQ-NBR + 1
Joined: 27 Oct 2009 Posts: 2446 Location: Netherlands, Amstelveen
How is WS-SEQ-NBR defined ?
If its a W field it will be spooled to report files.
If its a S field it will not be spooled to report files.
Fields contained in S storage exhibit unique properties during report processing.
S fields are stored in a static working storage area. Fields in this category are not
copied onto report work files. All references to S fields occur at the time the
report is actually formatted and printed. Remember, the format and print
operation can occur at one of two different times. With this in mind, you should
use S storage fields for:
Temporary work fields for report procedures
Line annotations controlled from report procedures
Grand total values from which you can calculate percentages.