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
 
I need a JCL to get the SYSOUT messages of a job to a PS

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

New User


Joined: 04 Apr 2006
Posts: 10

PostPosted: Tue Apr 04, 2006 9:22 pm    Post subject: I need a JCL to get the SYSOUT messages of a job to a PS
Reply with quote

hello ppls,

I need a JCL to get the SYSOUT messages of a job to get stored in a PS

thanks
sriramkumar
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Apr 04, 2006 9:56 pm    Post subject: Re: I need a JCL to get the SYSOUT messages of a job to a PS
Reply with quote

Instead of coding

//SYSOUT DD SYSOUT=*

code

//SYSOUT DD DSN=THE.DATASET.NAME,DISP=(,CATLG,DELETE),...
Back to top
View user's profile Send private message
jasorn

Active User


Joined: 12 Jul 2006
Posts: 154
Location: USA

PostPosted: Wed Jul 12, 2006 5:26 pm    Post subject: Re: I need a JCL to get the SYSOUT messages of a job to a PS
Reply with quote

superk wrote:
Instead of coding

//SYSOUT DD SYSOUT=*

code

//SYSOUT DD DSN=THE.DATASET.NAME,DISP=(,CATLG,DELETE),...


Another option that may be better depending on your needs is to use 'batch sdsf' to print the sysout to a dataset. Search for batch sdsf to get syntax info.
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Thu Jul 13, 2006 9:57 am    Post subject: Re: I need a JCL to get the SYSOUT messages of a job to a PS
Reply with quote

Hi,
You can use the XD command in Spool left to jobname,once the job finished.

-Han.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Thu Jul 13, 2006 4:13 pm    Post subject:
Reply with quote

Hi,

I think using XDC/XD command requires manual intervention. so, the suggestion by superk sounds better.
Back to top
View user's profile Send private message
jasorn

Active User


Joined: 12 Jul 2006
Posts: 154
Location: USA

PostPosted: Thu Jul 13, 2006 5:15 pm    Post subject:
Reply with quote

On thing to consider when putting a dataset to a file instead of batch sdsf is that if you just put the sysout to a dataset, it no longer shows in the sysout now longer shows in sdsf. This might be important if the ouput from the job is saved for reference but the dataset the sysout goes to isn't.
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 ims program to put and get MQ messages fatenezzat COBOL Programming 1 Wed Feb 17, 2016 1:07 am
No new posts REXX / CA TOP SECRET messages carlos fuentes CLIST & REXX 2 Tue Oct 27, 2015 11:02 pm
No new posts Writing messages between the records ... ssudhanshu CLIST & REXX 4 Tue Apr 28, 2015 12:54 pm
No new posts Asynchronous consumption of WebSphere... Wilsy Java & MQSeries 0 Fri Dec 19, 2014 10:34 pm
No new posts Find the total of this field in SYSOUT karz DFSORT/ICETOOL 3 Thu Nov 13, 2014 2:59 pm

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