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 we move the SYSOUT to ouput spool as well to a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can we move the SYSOUT to ouput spool as well to a dataset
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

Moderator Team Head


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

PostPosted: Tue Oct 30, 2007 5:54 pm    Post subject: Reply to: Can we move the SYSOUT to ouput spool as well to a
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Mon Nov 05, 2007 12:42 pm    Post subject: Reply to: Can we move the SYSOUT to ouput spool as well to a
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    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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm

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