Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10326
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us