View previous topic :: View next topic
|
Author |
Message |
lalitha_gld
New User
Joined: 12 Jul 2006 Posts: 24
|
|
|
|
Hi,
I have a requirement in which a summary needs to be displayed in the SYSOUT of a program. As of now this is directed to spool as,
Quote: |
SYSOUT DD SYSOUT=* |
Now this summary also needs to be mailed after this program in the process. For this I would need the summary written to a file and passed as mail text to the email program.
I would like to know, whether the content from the SYSOUT can be routed to spool and a new file.
Thanks,
Lalitha. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Have you used the SEARCH button on the forum.
This has been previously discussed and answered. |
|
Back to top |
|
|
lalitha_gld
New User
Joined: 12 Jul 2006 Posts: 24
|
|
|
|
Hi,
I did try searching as I always do. But was not able to narrow down on the content I was looking for.
Pls let me know if you could help.
Thanks,
Lalitha. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
the usual approach for this requirement is to...
Code: |
instead of
//program_printout_ddname DD SYSOUT=*
//program_printout_ddname DD DSN=some_dataset_name,
// rest of parameters for a disk dataset
|
and to print it to spool
Code: |
//* here is the print step
//PRINT EXEC PGM=IEBGENER
//SYSPRINT DD DUMMY
//SYSIN DD SUMMY
//SYSUT1 DD DISP=SHR,DSN=some_dataset_name ( the prevoius obviously )
//SYSUT2 DD SYSOUT * print to spool
//* add here the mailing step
|
|
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
lalitha_gld wrote: |
Now this summary also needs to be mailed after this program in the process. For this I would need the summary written to a file and passed as mail text to the email program. |
As enrico-sorichetti pointed out, that is the common way of doing it.
Then again Lionel B. Dyck has a great little tool, SDFSEXT, a generalized SDSF batch tool to extract all or part of your sysout into a dataset that could be emailed. |
|
Back to top |
|
|
vinodmaanju
New User
Joined: 10 May 2005 Posts: 28 Location: Pune
|
|
|
|
Use Dataset name instead of SYSOUT=*.
Ex. //SYSOUT DD DSN=FILENAME, DISP=SHR/NEW/MOD |
|
Back to top |
|
|
|