View previous topic :: View next topic |
Author |
Message |
anjali Beginner
Joined: 23 Nov 2005 Posts: 5 Topics: 4
|
Posted: Mon Dec 12, 2005 4:04 am Post subject: SYSOUT messages to both sdsf and a dataset ? |
|
|
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 |
|
 |
Vinodch Beginner
Joined: 23 Dec 2002 Posts: 80 Topics: 32 Location: Chennai, India
|
Posted: Mon Dec 12, 2005 4:51 am Post subject: |
|
|
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 |
|
 |
anjali Beginner
Joined: 23 Nov 2005 Posts: 5 Topics: 4
|
Posted: Mon Dec 12, 2005 5:11 am Post subject: SYSOUT messages to both sdsf and a dataset ? |
|
|
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 |
|
 |
Vinodch Beginner
Joined: 23 Dec 2002 Posts: 80 Topics: 32 Location: Chennai, India
|
Posted: Mon Dec 12, 2005 7:15 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Dec 12, 2005 9:02 am Post subject: |
|
|
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 |
|
 |
|
|