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
 

 

How to generate page numbers for report using DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
dssenthil

New User


Joined: 14 Aug 2008
Posts: 7
Location: Chennai

PostPosted: Thu Dec 23, 2010 8:48 pm    Post subject: How to generate page numbers for report using DFSORT
Reply with quote

Hi,

I have a requirement to generate a report using DFSORT.
Input file format : FB
LRECL : 575

Now i was able to generate the report using the sort card :

Code:

//CTL1CNTL DD *
  SORT FIELDS=(1,4,CH,A)
  OUTFIL FNAMES=RPT1,
    HEADER1=(10:'RUN DATE : ',21:DATE,3X,
      36:'DAILY BREAKAGE REPORT',3X,60:'PAGE : ',/,
      1:'SEQID',6X,12:'DATE',13X,29:'AMOUNT',/,
      1:5'-',2X,9:10'-',4X,24:18'-'),
    BUILD=(1:1,4,3X,9:5,10,3X,25:21,17,,90:X)
/*


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.
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Dec 24, 2010 5:55 am    Post subject:
Reply with quote

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:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080
Back to top
View user's profile Send private message
dssenthil

New User


Joined: 14 Aug 2008
Posts: 7
Location: Chennai

PostPosted: Mon Dec 27, 2010 2:32 pm    Post subject: Reply to: How to generate page numbers for report using DFSO
Reply with quote

Thanks for your help Frank... Now i was able to generate the header for every 55 lines in a report. But the Page number in the headers appears blank.

Please find the screenshots in attachment and advise.

Please advise how to generate page number as well.

Thanks,
Senthil.
Back to top
View user's profile Send private message
balakrishna reddy.bala

New User


Joined: 15 Sep 2010
Posts: 17
Location: india

PostPosted: Mon Dec 27, 2010 4:24 pm    Post subject:
Reply with quote

Hi Senthil,

It seems you didn't go thru the doc link given by Frank.

Try this

Code:

60:'PAGE  : ',PAGE,/,
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Mon Dec 27, 2010 9:47 pm    Post subject:
Reply with quote

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.
Back to top
View user's profile Send private message
dssenthil

New User


Joined: 14 Aug 2008
Posts: 7
Location: Chennai

PostPosted: Tue Dec 28, 2010 11:06 am    Post subject: Reply to: How to generate page numbers for report using DFSO
Reply with quote

I tried with PAGE command and it's working fine. Thanks for your help Frank.

Regards,
Senthil.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 4 Mon Mar 27, 2017 3:59 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm


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