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

How to get output in a dataset instead of SPOOL


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

thanks saiprasadh
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: Mon Jul 16, 2007 8:40 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Jul 16, 2007 9:28 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top