View previous topic :: View next topic
|
Author |
Message |
sjothimani
New User
Joined: 04 Apr 2006 Posts: 10
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Instead of coding
//SYSOUT DD SYSOUT=*
code
//SYSOUT DD DSN=THE.DATASET.NAME,DISP=(,CATLG,DELETE),... |
|
Back to top |
|
|
jasorn Warnings : 1 Active User
Joined: 12 Jul 2006 Posts: 191 Location: USA
|
|
|
|
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 |
|
|
Hanfur
Active User
Joined: 21 Jun 2006 Posts: 104
|
|
|
|
Hi,
You can use the XD command in Spool left to jobname,once the job finished.
-Han. |
|
Back to top |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
Hi,
I think using XDC/XD command requires manual intervention. so, the suggestion by superk sounds better. |
|
Back to top |
|
|
jasorn Warnings : 1 Active User
Joined: 12 Jul 2006 Posts: 191 Location: USA
|
|
|
|
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 |
|
|
|