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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am


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