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

Can I route the contents of SYSOUT to spool and a file?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lalitha_gld

New User


Joined: 12 Jul 2006
Posts: 24

PostPosted: Thu Apr 10, 2008 7:19 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 10, 2008 7:23 pm
Reply with quote

Have you used the SEARCH button on the forum.

This has been previously discussed and answered.
Back to top
View user's profile Send private message
lalitha_gld

New User


Joined: 12 Jul 2006
Posts: 24

PostPosted: Thu Apr 10, 2008 7:29 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Apr 10, 2008 8:28 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Apr 10, 2008 10:27 pm
Reply with quote

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
View user's profile Send private message
vinodmaanju

New User


Joined: 10 May 2005
Posts: 28
Location: Pune

PostPosted: Fri Apr 11, 2008 10:45 am
Reply with quote

Use Dataset name instead of SYSOUT=*.

Ex. //SYSOUT DD DSN=FILENAME, DISP=SHR/NEW/MOD
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 FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top