MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Capture the Output datasets

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
tattva
Beginner


Joined: 02 Feb 2005
Posts: 97
Topics: 36

PostPosted: Mon Dec 19, 2005 12:10 pm    Post subject: Capture the Output datasets Reply with quote

Hi All,

I have a job which has 30 programs running in it. Now i need to capture the output datasets from the JESYSMSG and write it out to a dataset.

Can any one let me know how do i go about getting this done.

Ex:- say the JESYSMSG contains 3 files

a1.g001v00
b1.g001v00

All these need to be captured from JESYSMSG and written out to dataset

Help appreciated.

Thanks,
Tattva
Back to top
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Mon Dec 19, 2005 1:44 pm    Post subject: Reply with quote

tattva,

Can't an IEBGENER or SORT copy step at the end of your job do the trick.

Regards,
Manas
_________________
There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948)
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Thu Dec 22, 2005 7:54 am    Post subject: Reply with quote

Here's an example of how to access SDSF from within REXX:
Code:
ADDRESS TSO                                                           
"ALLOC F(ISFIN) TRACKS SPACE(1) REU"            /* Used by SDSF     */
"ALLOC F(ISFOUT) NEW DELETE REU " ,             /* Used by SDSF     */
"TRACKS SPACE(100,100) LRECL(133) RECFM(F,B,A) DSORG(PS)"             
"ALLOC F(TEMPPRT) DA('MY.DATASET') SHR"                 
                                                                       
QUEUE "PRE CICSTCH1"                       /* SDSF commands in batch*/
QUEUE "DA"                                                             
QUEUE "FILTER JOBID EQ "JOBID                                         
QUEUE "++?"                                /* Open output of job    */
QUEUE "FIND 'MSGUSR'"                                                 
QUEUE "++S"                                /* Browse MSGUSR dataset */
QUEUE "PRINT FILE TEMPPRT "                /* Print to temp dataset */
QUEUE "PRINT 1 999999"                                                 
QUEUE "PRINT CLOSE"                                                   
QUEUE "END"                                                           
QUEUE "EXIT"                                                           
                                                                       
"EXECIO" QUEUED()" DISKW ISFIN (FINIS"     /* Input to SDSF batch   */
                                                                       
ADDRESS ISPEXEC "SELECT PGM(ISFAFD) PARM('++32,255)" /* Invoke SDSF */


Of course, it's always a good idea to read the fine manual... Smile

O.
________
ST series
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group