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 get output in a dataset instead of SPOOL

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

New User


Joined: 14 Nov 2006
Posts: 12

PostPosted: Mon Jul 16, 2007 11:09 am    Post subject: How to get output in a dataset instead of SPOOL
Reply with quote

could anyone tell me how to get the output in a dataset instead of spool in jcl
Back to top
View user's profile Send private message

saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Mon Jul 16, 2007 11:47 am    Post subject:
Reply with quote

HI Pavithraa,

Give the Dataset name in the SYSOUT insted of
SYSOUT=* in the JCL

Ex:
Code:
SYSOUT   DD  DISP=SHR,DSN=Dataset Name




Thanks
Sai
Back to top
View user's profile Send private message
0d311

Guest





PostPosted: Mon Jul 16, 2007 12:07 pm    Post subject:
Reply with quote

saiprasadh wrote:
HI Pavithraa,
Ex:
Code:
SYSOUT   DD  DISP=SHR,DSN=Dataset Name



For output DSNs, I don't think a disposition of SHR is being used. It's either NEW, DELETE, CATLG, KEEP or MOD. Please let me know if I got it wrong though icon_smile.gif
Back to top
pavithraa

New User


Joined: 14 Nov 2006
Posts: 12

PostPosted: Mon Jul 16, 2007 12:11 pm    Post subject:
Reply with quote

thanks saiprasadh
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: Mon Jul 16, 2007 8:40 pm    Post subject:
Reply with quote

Hello,

You are correct - SHR should not be used for this dataset.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Jul 16, 2007 9:28 pm    Post subject: Re: get output in a dataset
Reply with quote

Quote:
For output DSNs, I don't think a disposition of SHR is being used. It's either NEW, DELETE, CATLG, KEEP or MOD. Please let me know if I got it wrong


Yes :-)

the disposition od a dataset has nothing to do with the use You make of it...
expecially for an output dataset

I have known of places where, to make AUDITING, reruns and debugging easier,
all the datasets ( even the temporary ones )
were preallocated for each procedure at the beginning of the job chain.

regards

e.s
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 Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
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 Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm


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