MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simple question - How to print a dataset in mainframe

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
cyberspecies
Beginner


Joined: 26 Dec 2002
Posts: 3
Topics: 2

PostPosted: Mon Jan 06, 2003 11:07 am    Post subject: Simple question - How to print a dataset in mainframe Reply with quote

The heading says it - How do I print a dataset to the printer. Please give me the JCL.

Cyberspecies
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Jan 06, 2003 11:33 am    Post subject: Reply with quote

Cyberspecies,

Did you try option 3.6 ( Hardcopy) ?? The system will generate the JCL for you. All you need is to supply the printer name

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Jan 06, 2003 11:34 am    Post subject: Reply with quote

Cyberseries,

It depends on what you want the output to look like.

If you just want a straight print of the records, you can use IEBGENER, DFSORT's ICEGENER, DFSORT copy, etc. Here's an example of a DFSORT copy job:

Code:

//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...  input file
//SORTOUT DD SYSOUT=*
//SYSIN DD *
  OPTION COPY
/*


If you want the output formatted in some way, tell us the RECFM and LRECL of the input file and how you want the printed output to look.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Jan 06, 2003 11:37 am    Post subject: Reply with quote

This is actually a really good question because most of the problem printing on a mainframe isn't getting the program to do it (IEBGENER et al are fine) but how to direct it to a particular printer so that 1) it really prints and 2) you can find the output. Unfortunately, both of these are very site specific and unless your help desk is competent, sometimes difficult to find out.
Back to top
View user's profile Send private message Visit poster's website
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Mon Jan 06, 2003 12:00 pm    Post subject: Reply with quote

If you just need a very basic print function to print a dataset/member to a printer in your NT network you can use the FTP program Copy the following CLIST to your SYSPROC and name it say NPRINT and change the IP adrs given there to your printer IP adrs. You may also need to change the CALL 'TCPIP.SEZALINK(FTP) in it specify your library. Go to 3.4 and type NPRINT beside your dataset/member to be printed.

Code:

         PROC 1 DDNAME
          CONTROL NOMSG
          FREE FILE(INPUT,OUTPUT,SYSPRINT)
          CONTROL MSG
          WRITE PRINTING &DDNAME ...........
          ALLOC FI(INPUT) REUSE NEW +
             BLOCK(80) RECFM(F) LRECL(80) +
             SPACE(1,1) TRACKS
          OPENFILE INPUT    OUTPUT
          SET INPUT    = &NRSTR+
          (10.53.58.51                                                 -
 )
          PUTFILE INPUT
          SET INPUT    = &NRSTR+
          (NONE                                                        -
 )
          PUTFILE INPUT
          SET INPUT    = &NRSTR+
          (PUT &DDNAME                                                 -
 )
          PUTFILE INPUT
          SET INPUT    = &NRSTR+
          (QUIT                                                        -
 )
          PUTFILE INPUT
          CLOSFILE INPUT
          ALLOC FI(OUTPUT) DA(*)
          ALLOC FI(SYSPRINT) DA(*)
          CONTROL NOMSG
          CALL 'TCPIP.SEZALINK(FTP)'
          FREE FILE(INPUT,OUTPUT,SYSPRINT)
         EXIT
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
cyberspecies
Beginner


Joined: 26 Dec 2002
Posts: 3
Topics: 2

PostPosted: Mon Jan 06, 2003 12:44 pm    Post subject: Reply with quote

Thank you all for the prompt response Smile
I tried hard copy and it worked

Cheers,
Cyberspecies
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group