Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8614
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: 10373
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 File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us