View previous topic :: View next topic
|
Author |
Message |
Joe_Song Currently Banned New User
Joined: 22 Jan 2008 Posts: 53 Location: china
|
|
|
|
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 |
|
|
Joe_Song Currently Banned New User
Joined: 22 Jan 2008 Posts: 53 Location: china
|
|
|
|
this is to print to my local printers . |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Joe_Song Currently Banned New User
Joined: 22 Jan 2008 Posts: 53 Location: china
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Joe_Song Currently Banned New User
Joined: 22 Jan 2008 Posts: 53 Location: china
|
|
|
|
i wanna print to my local printer, not sysout |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 ).
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|