Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

detail line being refreshed after every page

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: detail line being refreshed after every page
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Jan 27, 2010 7:46 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm
No new posts ALTER of an IDMS AREA with NEW/OLD pa... Awanti IDMS/ADSO 2 Mon Mar 14, 2016 10:01 pm
No new posts ISREDIT - Position Cursor on the Comm... Tarique Anwer TSO/ISPF 5 Wed Feb 03, 2016 12:44 pm
No new posts Need a logic to validate the data in ... sandeep kumar302 COBOL Programming 17 Mon Feb 01, 2016 3:30 pm
No new posts GROUP - header data to be repeated in... Musab Ahmed DFSORT/ICETOOL 3 Mon Feb 01, 2016 11:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us