Now, i need to generate page numbers and headers for every 55 line breaks. (i.e) If the report lines exceeds 55 lines, i need to print the header as well as increment the page number.
Your help in this is much appreciated.
Thanks in advance.
Senthil.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Use HEADER2 (the page header) instead of HEADER1 (the report header) and use LINES=55 for 55 lines per page:
Code:
OUTFIL FNAMES=RPT1,LINES=55,
HEADER2=(...
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
D.S.Senthil,
Dick is right. You must use PAGE, PAGE=(edit) or PAGE=(to) to actually get the page number. Which one you would use depends on what you want the page number to look like.