IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

detail line being refreshed after every page


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rohit510

New User


Joined: 08 Jan 2008
Posts: 18
Location: delhi

PostPosted: Wed Jan 27, 2010 7:16 pm
Reply with quote

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
AFTER-LINE. PROC
WS-SEQ-NBR = WS-SEQ-NBR + 1
END PROC.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jan 27, 2010 7:46 pm
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts rewrite same SAY line CLIST & REXX 8
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts Merge files with a key and insert a b... DFSORT/ICETOOL 6
Search our Forums:

Back to Top