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

Can we move the SYSOUT to ouput spool as well to a dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Tue Oct 30, 2007 5:51 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Oct 30, 2007 5:54 pm
Reply with quote

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
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Tue Oct 30, 2007 9:04 pm
Reply with quote

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
View user's profile Send private message
sun_job

New User


Joined: 18 Sep 2007
Posts: 73
Location: Bangalore

PostPosted: Mon Nov 05, 2007 12:21 pm
Reply with quote

There is one way i think , you can use XDC command in the output spool and print the spool info to a dataset icon_rolleyes.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 05, 2007 12:42 pm
Reply with quote

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
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts InfoSphere OPTIM CSV ouput vs DSNTIUA... IBM Tools 3
Search our Forums:

Back to Top