Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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
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
References
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

Global Moderator


Joined: 23 Nov 2006
Posts: 13593
Location: 221 B Baker St

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

Global Moderator


Joined: 23 Nov 2006
Posts: 13593
Location: 221 B Baker St

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: 6469
Location: Brussels once more ...

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: 5395
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

Global Moderator


Joined: 23 Nov 2006
Posts: 13593
Location: 221 B Baker St

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1