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
 

 

how to write a printing job?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Joe_Song
Currently Banned

New User


Joined: 22 Jan 2008
Posts: 53
Location: china

PostPosted: Tue Jun 30, 2009 9:42 am    Post subject: how to write a printing job?
Reply with quote

i want to write a job to do the printing for any files in MVS, so can anyone give me the example?

thanks in advance
Back to top
View user's profile Send private message

Joe_Song
Currently Banned

New User


Joined: 22 Jan 2008
Posts: 53
Location: china

PostPosted: Tue Jun 30, 2009 9:45 am    Post subject:
Reply with quote

this is to print to my local printers .
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jun 30, 2009 9:48 am    Post subject:
Reply with quote

Hello,

What do you want to use for "printing any files"?

There are many, many utilities that might do this in one way or another.

Suggest you post an example of what you want as output and what kind of data you want to use as input. Depending on the data and what you want to "print", different tools might be used.

Printing is usually the same for local and remote printers. . .
Back to top
View user's profile Send private message
Joe_Song
Currently Banned

New User


Joined: 22 Jan 2008
Posts: 53
Location: china

PostPosted: Tue Jun 30, 2009 9:52 am    Post subject:
Reply with quote

expample, to print a pli program from 'bims.ipo.pli(aaa)' to my local printer , but i want to use a batch job to submit.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jun 30, 2009 10:04 am    Post subject:
Reply with quote

Hello,

Suggest you use something like the following for the most simple example:
Code:

//PRINTIT  EXEC PGM=IEBGENER                                       
//*                                                                 
//*  PRINT PGM                     
//*                                                                 
//SYSIN    DD  DUMMY                                               
//SYSUT1   DD  DSN=bims.ipo.pli(aaa),DISP=SHR   
//SYSOUT   DD  SYSOUT=*               
//* PGM PRINT OUTPUT                                                           
//SYSUT2   DD  SYSOUT=*                                   
Back to top
View user's profile Send private message
Joe_Song
Currently Banned

New User


Joined: 22 Jan 2008
Posts: 53
Location: china

PostPosted: Tue Jun 30, 2009 10:32 am    Post subject:
Reply with quote

i wanna print to my local printer, not sysout
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 30, 2009 11:19 am    Post subject:
Reply with quote

Joe_Song wrote:
i wanna print to my local printer, not sysout

That is site sprcific information, and as you may have guessed, we are not psychic. (Well, maybe on Thursday icon_lol.gif ).

You will need to speak with someone at your site to find out the site specific details and then substitute those details into the code that Dick has given you.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Jun 30, 2009 11:28 am    Post subject: Reply to: how to write a printing job?
Reply with quote

Quote:
wanna print to my local printer, not sysout


please review, get trained on zOS things...

printing is a two stage process

1) the program produces the report/callitanythingYouwant

2) JES2/3 takes care of physically print the thing
directly for some printers, using some additional product for others,
all depends on the printer type and the way the printer is connected ( physically and logically ) to the MF
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jun 30, 2009 7:12 pm    Post subject:
Reply with quote

Hello,

Quote:
i wanna print to my local printer, not sysout
SUSOUT is typically how one prints to a "local" printer. Unless you do not mean the accepted definition of a mainframe local printer. . .

If you by chance mean the printer available to your Windows environment (which you did not mention), it is easiest to download the source and print it using any of the Win-based tools. . .
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 Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am


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