IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Apr 04, 2006 9:56 pm
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
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Wed Jul 12, 2006 5:26 pm
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
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
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
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Thu Jul 13, 2006 5:15 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
No new posts REXX GETMSG does not return £HASP880... CLIST & REXX 2
No new posts No sysout coming in spool JCL & VSAM 4
No new posts Control M features to check string in... Compuware & Other Tools 1
No new posts Read 4MB message and split into multi... COBOL Programming 9
Search our Forums:

Back to Top