Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2442
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us