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: 10211
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
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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