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: 10232
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am


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