View previous topic :: View next topic
|
Author |
Message |
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
Hi,
In one STEP can we move the SYSOUT to ouput spool as well as to a dataset
If yes, please help me in solving the problem
My requirement
//step01 ......
//....
//SYSOUT dd sysout=*
//SYSOUT dd dsn= file
// |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
No, you can't. It will require two steps - one to copy to the dataset, then one to copy the dataset to SYSOUT. |
|
Back to top |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
Several years ago, I was at a client where we had a subsys that would do this, but I cannot remember what it was called. |
|
Back to top |
|
|
sun_job
New User
Joined: 18 Sep 2007 Posts: 73 Location: Bangalore
|
|
|
|
There is one way i think , you can use XDC command in the output spool and print the spool info to a dataset |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
...subsys that would do this,... |
Usually all the sysout archival systems have an option for
direct printing and archiving...
But if the poster needs to define his own dataset naming the only way is a
two step approach..
Code: |
//SYSOUT DD DSN=some_dataset_name,....
//PRINT EXEC PGM=IEBGENER
//...
//SYSUT1 DD DSN=some_dataset_name,....
//SYSUT2 DD sysout=*,..... |
|
|
Back to top |
|
|
|