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

Copy SYSOUT to a PS file as well as display in SPOOL


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

Active User


Joined: 03 Nov 2005
Posts: 275
Location: Mumbai

PostPosted: Fri Mar 12, 2010 11:53 am
Reply with quote

Hi All,

I want to copy sysout of a STEP into a PS file. But at the same time I want to display those details in spool also. The requirement is as below

//STEP1 EXEC PGM=ABC
//DD1 DD DSN=INPUT
//DD2 DD DSN=OUTPUT
//SYSTOUT DD SYSOUT=*

I want these sysout details in a file also..Is it possible by coding any extra step..

I can't take XDC from spool as this job goes to JHS

So final output need to be a Details displayed in Spool as well as copied to a PS file..

Kindly let me know solution for this

Regards,
Chandan
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Mar 12, 2010 12:12 pm
Reply with quote

Please search the forum as there are many suggestions to achieve this and they are there, just waiting to be found.
Back to top
View user's profile Send private message
chandan.inst

Active User


Joined: 03 Nov 2005
Posts: 275
Location: Mumbai

PostPosted: Fri Mar 12, 2010 12:21 pm
Reply with quote

Sorry to post this before searching..

I have got the solution which is as below:

//STEP1 EXEC PGM=ABC
//DD1 DD DSN=INPUT
//DD2 DD DSN=OUTPUT
//SYSTOUT DD DSN=SYSOUT DSN
//*
//STEP2 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=SYSOUT DSN
//SYSUT2 DD SYSOUT=*

This will solve the purpose.

Regards,
Chandan
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Mar 12, 2010 12:28 pm
Reply with quote

You may also use TSO JHSCOPY or you can invoke SDSF in batch.
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 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
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top