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

how to write a printing job?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
Reply with quote

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

Moderator Emeritus


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

PostPosted: Tue Jun 30, 2009 9:48 am
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
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

Moderator Emeritus


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

PostPosted: Tue Jun 30, 2009 10:04 am
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Jun 30, 2009 11:19 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 30, 2009 11:28 am
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

Moderator Emeritus


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

PostPosted: Tue Jun 30, 2009 7:12 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts JCL to write the log on to a PDS file JCL & VSAM 10
No new posts COBOL - create and write to output fi... COBOL Programming 0
Search our Forums:

Back to Top