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

Capturing output of REXX in a file


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Raj Ponnuchamy

New User


Joined: 09 Sep 2009
Posts: 9
Location: Chennai

PostPosted: Thu Sep 24, 2009 11:49 am
Reply with quote

Hi

I have a requirement as below,

1) I need to invoke TSO LISTUSER command from my rexx program. This one i achieved through ADDRESS TSO LISTUSER in my program.

2) I need to capture the output of LISTUSER command in a file in the same REXX program. I want to know whether it is possible to do this.

I got the output of TSO LISTUSER command in a file through batch using IKJEFT01. But i don't know whether it is possible to do this through online from rexx program.

Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Sep 24, 2009 11:51 am
Reply with quote

How did you do it in batch ?
Back to top
View user's profile Send private message
Raj Ponnuchamy

New User


Joined: 09 Sep 2009
Posts: 9
Location: Chennai

PostPosted: Thu Sep 24, 2009 11:56 am
Reply with quote

Hi,

I got the output in a file through the below job,

//STEP10 EXEC PGM=IKJEFT01
//SYSTSPRT DD DSN=output file ,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(50,50),RLSE),
// UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSTSIN DD *
LISTUSER
/*

Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Sep 24, 2009 12:00 pm
Reply with quote

Take a look at OUTTRAP

It should suffice as a search keyword to get you some ideas
Back to top
View user's profile Send private message
Raj Ponnuchamy

New User


Joined: 09 Sep 2009
Posts: 9
Location: Chennai

PostPosted: Thu Sep 24, 2009 3:19 pm
Reply with quote

Hi,

Thanks for the guidance. It solved my requirement.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top