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 Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 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