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: 10210
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 Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm


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