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
 

 

Page numbers populated as zeroes in Header record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Prase

New User


Joined: 07 Oct 2011
Posts: 6
Location: INDIA

PostPosted: Fri Oct 07, 2011 6:40 pm    Post subject: Page numbers populated as zeroes in Header record
Reply with quote

Hi,

I'm creating a file report using the SYNCSORT. Everything is coming fine except for the page number in the header. Page number is not getting populated with all the below options.

==> 'Page :',PAGE
==> 'Page :', &PAGE
==> 'Page :', PAGE=(TO=ZD,LENGTH=1)
==> 'Page :', PAGE=(M11,LENGTH=3)

When I added LINES=55 before HEADER1, page number is getting populated as 0. Can anyone suggest me what to do to get the value as 1?
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Oct 07, 2011 6:45 pm    Post subject:
Reply with quote

Show the complete sort step you have used with use of code tag, That will help you get answered.
Back to top
View user's profile Send private message
Prase

New User


Joined: 07 Oct 2011
Posts: 6
Location: INDIA

PostPosted: Fri Oct 07, 2011 6:55 pm    Post subject:
Reply with quote

Please find the code below

Code:

  OUTFIL LINES=55,HEADER1=(02:C'REPORT ID: XXXXXXXX',         
                54:C'XXXXXXXXXXXXXXXXXXXXXXXXX',           
               162:C'PAGE: ',PAGE=(TO=ZD,LENGTH=1),/,       
               02:C'PROC DATE: ',DATE=(MD4-),               
               50:C'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
               158:C'RUN DATE:',DATE=(MD4/)),   
  HEADER2=(....           

Printed in file as below.

Code:
     PAGE: 0       
 RUN DATE:10/07/2011
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Sat Oct 08, 2011 4:34 am    Post subject:
Reply with quote

Hi,

I think you will find PAGE works for HEADER2

A little test I carried out

Code:

  OUTFIL LINES=55,HEADER2=(02:C'REPORT ID: XXXXXXXX',     
                62:C'PAGE: ',70:&PAGE)                 


Gerry
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts Row-Numbers of distinct rows? Auryn DB2 1 Thu Oct 20, 2016 4:38 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm


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