Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Capturing output of REXX in a file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Capturing output of REXX in a file
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: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 24, 2009 11:51 am    Post subject:
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    Post subject: Reply to: Capturing output of REXX in a file
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: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 24, 2009 12:00 pm    Post subject:
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    Post subject: Reply to: Capturing output of REXX in a file
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us