View previous topic :: View next topic
|
Author |
Message |
itmasterminds
New User
Joined: 01 Feb 2007 Posts: 6 Location: Chennai
|
|
|
|
Hi all,
I need a quick help. I need to print my dataset in a printer that has got connected to the mainframe network.
When I submit the job for printing, Blank pages are getting printed in between.
For eg: If i give print for 3 pages, the first page is getting printed, and then I get one or two blank pages before getting the next page printed.
Any idea of why blank pages are getting inserted in between??
(I have a dataset with 210 lines, printing 70 lines per page. I need this to get printed in 3 pages, but I'm getting few extra blank pages in between)
Please let me know if any other details needs to be furnished.
Thanks in advance. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
masterminds,
Most of the shops has customised printing routine. Are you using any such tailored ones? |
|
Back to top |
|
|
itmasterminds
New User
Joined: 01 Feb 2007 Posts: 6 Location: Chennai
|
|
|
|
I cant get what you are asking for. can you please explain little more ? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
masterminds,
How are you routing dataset to printer? Any utility being used for this? |
|
Back to top |
|
|
itmasterminds
New User
Joined: 01 Feb 2007 Posts: 6 Location: Chennai
|
|
|
|
Hi Murali,
I'm using IEBGENER, and pointing the DEST to printer and submitting the job.
Its getting printed, but as said above, the blank pages are coming in between.
Please let me know if i need to furnish any other detail.
Thanks,
Dan. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
Is the 'Report' to be printed is a 'simple report' or does it contain some special characters ..such AFP-characters set? |
|
Back to top |
|
|
itmasterminds
New User
Joined: 01 Feb 2007 Posts: 6 Location: Chennai
|
|
|
|
Yes, it has control characters.
the Input goes like this:
1 Report 1- first line
..
..
..
..
.. End of Report1(Line# 70)
1 Report 2-first line
..
..
..
..
.. End of Report2(Line#140)
1 Report3-first line
..
..
..
..
.. End of Report3(Line#210) |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
Are the bold numerical characters shown above represents 'CC' (Carriage Control) values? |
|
Back to top |
|
|
itmasterminds
New User
Joined: 01 Feb 2007 Posts: 6 Location: Chennai
|
|
|
|
Yes anuj,
You are right.. Its CC Value |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Check if you have any multiple 1 in the first column without data.
This 1 in the carriage control prints from new page.
Or
Some times it's the number of lines that can be printed on 1 page, depends on printer need not be 70. |
|
Back to top |
|
|
Shanti
New User
Joined: 19 Jun 2007 Posts: 8 Location: hyderabad
|
|
|
|
Hi Dev,
Just going thru this post...could you please make your second option clear?
You mean to say like on an average a printer can accept less than 70 lines? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi itmasterminds,
You can use an JCL of below type. (Cautio: You can not start with right-away with this JCL, however, your final JC should be like this)
Code: |
//*
//OUTPUT1 OUTPUT FORMDEF=XXAFPF,PAGEDEF=XXAFPP,
// USERLIB=('HLQ.ANUJ.AFP')
//*
//STEP01 EXEC PGM=AFPPGM
//STEPLIB DD DSN=HLQ.PGMLIB,DISP=SHR
// DD DSN=LINKLIB,DISP=SHR
//*
//INFILE DD DSN=REPORT.FILE.TO.BE.PRINTED,
// DISP=SHR
//*
//OUTFILE DD SYSOUT=A,OUTPUT=*.OUTPUT1,
// COPIES=1,DCB=(OPTCD=J,RECFM=VA),DEST=U337
//*
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=R |
I think, you already have this type of JCL with you. , however provided for reference purpose. Further, for this
Quote: |
When I submit the job for printing, Blank pages are getting printed in between. |
If you are using AFP then Mainframe-printer must throw an error-page, which will list the probable errors, if you get such an error-message/s page & can post those errors here, might be me or someone around would be able to help better.
Further, what Devzee suggested is one of the reasons, to check that in your report file, 'open' your Report in 'View' mode & on command prompt use the command ' FALL' as
Code: |
FALL 'Report 1- first line' |
This will show lines only with 'Report 1- first line' & in left of that you can check for CC-value. You can check this for all other CC-values as well.
Try thses once & in case of any concerns we are here.
Hope this helps. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
I have a dataset with 210 lines, printing 70 lines per page. I need this to get printed in 3 pages, but I'm getting few extra blank pages in between |
Does You printer support ( has been defined to ) 70 lines per page...
What printer ( model/connection ) ?
if it is a local printer define the appropriate forms control buffer
and character set
if it is a remote check the specifications |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
You can use an JCL of below type |
Again..
nothing can be inferred about AFP usage,
if the report is application generated, and there are problems with the printouts
in general it is a poor application design not taking into account
the hardware being used |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi enrico,
I think this
Code: |
//OUTPUT1 OUTPUT FORMDEF=XXAFPF,PAGEDEF=XXAFPP,
// USERLIB=('HLQ.ANUJ.AFP')
//*
//STEP01 EXEC PGM=AFPPGM |
from the JCL, suggests that one has to provide a proper definition of 'FORMDEF', 'PAGEDEF' with a COBOL-AFP program which can interprest these values, and it just aligns with your second-last post. |
|
Back to top |
|
|
itmasterminds
New User
Joined: 01 Feb 2007 Posts: 6 Location: Chennai
|
|
|
|
Hi All,
I'm trying out different options mentioned above.
If anyone has any other suggestions, please post.
Thanks a lot everyone for your help.
Daniel. |
|
Back to top |
|
|
|