| View previous topic :: View next topic |
| Author |
Message |
MainframeJoe Beginner
Joined: 30 May 2006 Posts: 7 Topics: 1
|
Posted: Thu Oct 12, 2006 12:13 pm Post subject: EZTRIEVE Page Number question |
|
|
Hi all, here is my question.
I want to be able to have a page # at the top of each page on the report, but i want the page # to lets say start in a specific position, and not let EZT do it for me.
Is there a way to do this?
Thanks |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12401 Topics: 75 Location: San Jose
|
Posted: Thu Oct 12, 2006 1:16 pm Post subject: |
|
|
MainframeJoe,
try this
| Code: |
REPORT yourrptname LINESIZE 80 PRINTER yourrptname NOADJUST NOPAGE
TITLE 01 COL 25 ' SAMPLE REPORT ' +
COL 60 ' PAGE #: ' PAGE-COUNT
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
MainframeJoe Beginner
Joined: 30 May 2006 Posts: 7 Topics: 1
|
Posted: Thu Oct 12, 2006 1:59 pm Post subject: |
|
|
This is what i have but i have an error:
QUALIFICATION REQUIRED - PAGE-COUNT
Is this a counter i need to increment?
Thanks for the help!
CODE:
| Code: |
REPORT L1-REPORT SPACE 1 PRINTER RPT1 SKIP 1 NOADJUST NODATE +
SUMSPACE 3 TALLYSIZE 6 NOPAGE
SEQUENCE ACCT
CONTROL
TITLE 1 'RUN DATE :' SYSDATE +
COL 55 XCNVPARM-CORRNAME COL 80 'PAGE # : ' PAGE-COUNT
|
|
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12401 Topics: 75 Location: San Jose
|
Posted: Thu Oct 12, 2006 2:08 pm Post subject: |
|
|
| Quote: |
REPORT L1-REPORT SPACE 1 PRINTER RPT1 SKIP 1 NOADJUST NODATE +
SUMSPACE 3 TALLYSIZE 6 NOPAGE
SEQUENCE ACCT
CONTROL
TITLE 1 'RUN DATE :' SYSDATE +
COL 55 XCNVPARM-CORRNAME COL 80 'PAGE # : ' PAGE-COUNT
|
You have 2 report names.
change this
| Quote: |
REPORT L1-REPORT SPACE 1 PRINTER RPT1 SKIP 1 NOADJUST NODATE +
|
to
| Quote: |
REPORT L1-REPORT SPACE 1 PRINTER L1-REPORT SKIP 1 NOADJUST NODATE +
|
and re-run your job
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
MainframeJoe Beginner
Joined: 30 May 2006 Posts: 7 Topics: 1
|
Posted: Fri Oct 13, 2006 6:49 am Post subject: |
|
|
Changing RPT1 to L1-REPORT is not going to fix it. RPT1 is the OUTFILE in which i want the report to be sent to.
The job runs if i remove the PAGE-COUNT and let EZT add the counter to the report.
Any other suggestions?
Thanks |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12401 Topics: 75 Location: San Jose
|
Posted: Fri Oct 13, 2006 8:46 am Post subject: |
|
|
MainframeJoe,
I don't understand . run the following job and see how the report works
| Code: |
//SYSPRINT DD SYSOUT=*
//SYSSNAP DD SYSOUT=*
//INFILE DD *
123456
123456
123456
123456
123457
123457
123458
//MYRPT DD SYSOUT=*
//SYSIN DD *
FILE INFILE
ACT-NUM 01 06 A
FILE MYRPT PRINTER
JOB INPUT INFILE
PRINT MYRPT
REPORT MYRPT SPACE 1 PRINTER MYRPT SKIP 1 NOADJUST NODATE +
SUMSPACE 3 TALLYSIZE 6 NOPAGE
SEQUENCE ACT-NUM
CONTROL FINAL ACT-NUM
TITLE 01 COL 01 'RUN DATE :' SYSDATE +
COL 25 'BLAH BLAH COMPANY' +
COL 60 'PAGE # : ' PAGE-COUNT
LINE 01 COL 10 ACT-NUM TALLY
/*
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
MainframeJoe Beginner
Joined: 30 May 2006 Posts: 7 Topics: 1
|
Posted: Fri Oct 13, 2006 10:32 am Post subject: |
|
|
Here is my error message.
Is PAGE-COUNT a counter that i need to increment? Or is this like a KEY word ?
REPORT L1-REPORT SPACE 1 PRINTER RPT1 SKIP 1 NOADJUST NODATE +
SUMSPACE 3 TALLYSIZE 6 NOPAGE
SEQUENCE ACCT
CONTROL
TITLE 1 'RUN DATE :' SYSDATE +
COL 80 'PAGE : ' PAGE-COUNT
*******B039 QUALIFICATION REQUIRED - PAGE-COUNT
TITLE 2 'RUN TIME :' SYSTIME + |
|
| Back to top |
|
 |
MainframeJoe Beginner
Joined: 30 May 2006 Posts: 7 Topics: 1
|
Posted: Fri Oct 20, 2006 6:37 am Post subject: |
|
|
| I guess no one has the answer |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12401 Topics: 75 Location: San Jose
|
Posted: Fri Oct 20, 2006 7:19 am Post subject: |
|
|
| MainframeJoe wrote: | | I guess no one has the answer |
MainframeJoe,
Did you run my sample job as is ? The sample job runs fine without any errors. What version of easytrieve are you running?
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
MainframeJoe Beginner
Joined: 30 May 2006 Posts: 7 Topics: 1
|
Posted: Fri Oct 20, 2006 11:28 am Post subject: |
|
|
You job should run no different then mine.
If i remove the word PAGE-COUNT my job runs without any problems, so even if i copy your job it will do the same and give me an error.
From our online documentation i think we are running V6.4. But i would not really know because i do not work in our data center. |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12401 Topics: 75 Location: San Jose
|
Posted: Fri Oct 20, 2006 11:33 am Post subject: |
|
|
| Quote: |
You job should run no different then mine. If i remove the word PAGE-COUNT my job runs without any problems, so even if i copy your job it will do the same and give me an error.
|
Why don't you run it and see.
| Quote: |
From our online documentation i think we are running V6.4. But i would not really know because i do not work in our data center.
|
The first line of your SYSPRINT will tell you the version of easytrieve you are running. If you are running version 6.4 there is NO way that you will get an error with the sample job I posted.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
MainframeJoe Beginner
Joined: 30 May 2006 Posts: 7 Topics: 1
|
Posted: Fri Oct 20, 2006 11:50 am Post subject: |
|
|
| Again my job runs fine without the word PAGE-COUNT so i cannot see why yours would run any different that makes no sense. |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12401 Topics: 75 Location: San Jose
|
Posted: Fri Oct 20, 2006 12:12 pm Post subject: |
|
|
| MainframeJoe wrote: | | Again my job runs fine without the word PAGE-COUNT so i cannot see why yours would run any different that makes no sense. |
I give up. Good luck _________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
|
|
|