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

Need to print my dataset in a printer


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
itmasterminds

New User


Joined: 01 Feb 2007
Posts: 6
Location: Chennai

PostPosted: Thu Oct 04, 2007 2:13 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Oct 04, 2007 2:52 pm
Reply with quote

masterminds,

Most of the shops has customised printing routine. Are you using any such tailored ones?
Back to top
View user's profile Send private message
itmasterminds

New User


Joined: 01 Feb 2007
Posts: 6
Location: Chennai

PostPosted: Thu Oct 04, 2007 2:55 pm
Reply with quote

I cant get what you are asking for. can you please explain little more ?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Oct 04, 2007 3:34 pm
Reply with quote

masterminds,

How are you routing dataset to printer? Any utility being used for this?
Back to top
View user's profile Send private message
itmasterminds

New User


Joined: 01 Feb 2007
Posts: 6
Location: Chennai

PostPosted: Thu Oct 04, 2007 3:52 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Oct 04, 2007 4:20 pm
Reply with quote

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
View user's profile Send private message
itmasterminds

New User


Joined: 01 Feb 2007
Posts: 6
Location: Chennai

PostPosted: Thu Oct 04, 2007 4:56 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Oct 04, 2007 6:07 pm
Reply with quote

Hi,

Are the bold numerical characters shown above represents 'CC' (Carriage Control) values?
Back to top
View user's profile Send private message
itmasterminds

New User


Joined: 01 Feb 2007
Posts: 6
Location: Chennai

PostPosted: Fri Oct 05, 2007 11:31 am
Reply with quote

Yes anuj,

You are right.. Its CC Value
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Oct 05, 2007 11:46 am
Reply with quote

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
View user's profile Send private message
Shanti

New User


Joined: 19 Jun 2007
Posts: 8
Location: hyderabad

PostPosted: Fri Oct 05, 2007 2:30 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Oct 08, 2007 12:55 pm
Reply with quote

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. icon_smile.gif , 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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Oct 08, 2007 1:05 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Oct 08, 2007 1:08 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Oct 08, 2007 1:45 pm
Reply with quote

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. icon_smile.gif
Back to top
View user's profile Send private message
itmasterminds

New User


Joined: 01 Feb 2007
Posts: 6
Location: Chennai

PostPosted: Mon Oct 15, 2007 3:01 pm
Reply with quote

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
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top