Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need to print my dataset in a printer

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need to print my dataset in a printer
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: 1439
Location: Bangalore,India

PostPosted: Thu Oct 04, 2007 2:52 pm    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Thu Oct 04, 2007 3:34 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Thu Oct 04, 2007 4:20 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Thu Oct 04, 2007 6:07 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Need to print my dataset in a printer
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

Senior Member


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

PostPosted: Mon Oct 08, 2007 12:55 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Oct 08, 2007 1:05 pm    Post subject: Reply to: Need to print my dataset in a printer
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Oct 08, 2007 1:08 pm    Post subject: Reply to: Need to print my dataset in a printer
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

Senior Member


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

PostPosted: Mon Oct 08, 2007 1:45 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us