Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can I route the contents of SYSOUT to spool and a file?
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 10, 2008 7:23 pm    Post subject:
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    Post subject: Reply to: Can I route the contents of SYSOUT to spool and a
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Thu Apr 10, 2008 8:28 pm    Post subject: Reply to: Can I route the contents of SYSOUT to spool and a
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: 2150
Location: At my coffee table

PostPosted: Thu Apr 10, 2008 10:27 pm    Post subject: Re: Can I route the contents of SYSOUT to spool and a file?
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us