How to capture the console command output in rexx



IBM's Command List programming language & Restructured Extended Executor

How to capture the console command output in rexx

Postby parthiban » Wed Nov 28, 2012 11:36 am

How to capture the console command output in rexx?

i am executing command in rexx but using outtrap am not able to capture the output.

is there any possiblity to capture the console commands o/p in rexx?
Parthiban jayaraman
mainframe rexxer,
Banglore
parthiban
 
Posts: 66
Joined: Mon Oct 20, 2008 7:54 pm
Location: Bangalore-India
Has thanked: 0 time
Been thanked: 0 time

Re: How to capture the console command output in rexx

Postby enrico-sorichetti » Wed Nov 28, 2012 12:04 pm

s there any possiblity to capture the console commands o/p in rexx?

YES :mrgreen:
if You do not like Yes/No answers learn not to post Yes/No questions

if You had searched the forum with "CONSOLE" You would have found
clist-rexx/topic8004-10.html?hilit=CONSOLE

see my snippet

in the snippet the <command> is hardcoded, should not be that difficult to pass it as a parameter
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: How to capture the console command output in rexx

Postby Viswanathchandru » Tue Dec 04, 2012 12:46 pm

Hi Parthiban,

You got the best way to address console from Enrico, you do have some other ways of doing it through the ISFSLASH special variable and getting the output into the ISF stem variables. And more over I believe you can't use Outtrap since it works for execs running under TSO/E address space whereas your console command should address the console as suggested. Apologize if I'm wrong.


Thanks,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm
Has thanked: 25 times
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post