IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Page numbers populated as zeroes in Header record


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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: 1702
Location: Australia

PostPosted: Sat Oct 08, 2011 4:34 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
Search our Forums:

Back to Top