MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SYSOUT messages to both sdsf and a dataset ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
anjali
Beginner


Joined: 23 Nov 2005
Posts: 5
Topics: 4

PostPosted: Mon Dec 12, 2005 4:04 am    Post subject: SYSOUT messages to both sdsf and a dataset ? Reply with quote

Hi,

I need to print all the SYSOUT messages to both SDSF and also to a dataset. Is it possible?

Thanks,
Anjali
Back to top
View user's profile Send private message
Vinodch
Beginner


Joined: 23 Dec 2002
Posts: 80
Topics: 32
Location: Chennai, India

PostPosted: Mon Dec 12, 2005 4:51 am    Post subject: Reply with quote

Anjali

By giving the following statement will print the sysout messages to SDSF:

//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*

Once the job is completed type the command XDC against the sysout,
the messages will be catalogued to a dataset.

Hope this helps !
_________________
Thanks,
Vinod.
Back to top
View user's profile Send private message
anjali
Beginner


Joined: 23 Nov 2005
Posts: 5
Topics: 4

PostPosted: Mon Dec 12, 2005 5:11 am    Post subject: SYSOUT messages to both sdsf and a dataset ? Reply with quote

Hi vinod,

I need to code it in the JCL itself, so that when the job runs in production it will send all the sysout messages to SDSF and also to a dataset. And i will send that dataset as an attachment through mail.

Thanks,
anjali
Back to top
View user's profile Send private message
Vinodch
Beginner


Joined: 23 Dec 2002
Posts: 80
Topics: 32
Location: Chennai, India

PostPosted: Mon Dec 12, 2005 7:15 am    Post subject: Reply with quote

Anjali

Normally the SYSOUT enlist all the DISPLAY statements upon the successful completion of the job, if you need the same to be written to the
file in the job then it is better to modify the program to write into a new file.
_________________
Thanks,
Vinod.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Dec 12, 2005 9:02 am    Post subject: Reply with quote

anjali,

Allocate the sysout to a dataset in the pgm step
Code:

//STEP0100 EXEC PGM=....
//*
//SYSOUT   DD  DSN=YOUR SYSOUT REPORT,         
//             DISP=(NEW,CATLG,DELETE),                     
//             UNIT=SYSDA,                                   
//             SPACE=(CYL,(X,Y),RLSE),                   
//             DCB=(LRECL=133,RECFM=FBA,BLKSIZE=0)             


Next step use an iebgener step to copy it to spool
Code:

//STEP0200 EXEC PGM=IEBGENER                                     
//SYSPRINT DD  SYSOUT=*                                           
//SYSIN    DD  DUMMY                                             
//SYSUT1   DD  DSN=your sysout report,               
//             DISP=SHR                                           
//SYSUT2   DD  SYSOUT=*


The dataset 'your sysout report' can be sent as an attachment in the mail

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group