View previous topic :: View next topic
|
Author |
Message |
Prase
New User
Joined: 07 Oct 2011 Posts: 6 Location: INDIA
|
|
|
|
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 |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Show the complete sort step you have used with use of code tag, That will help you get answered. |
|
Back to top |
|
|
Prase
New User
Joined: 07 Oct 2011 Posts: 6 Location: INDIA
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
|