Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups 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
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
References
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3303
Location: Charlotte,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: 109

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: 106

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: 279
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: 109

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1