Page 1 of 1

How to capture the console command output in rexx

PostPosted: Wed Nov 28, 2012 11:36 am
by parthiban
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?

Re: How to capture the console command output in rexx

PostPosted: Wed Nov 28, 2012 12:04 pm
by enrico-sorichetti
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

Re: How to capture the console command output in rexx

PostPosted: Tue Dec 04, 2012 12:46 pm
by Viswanathchandru
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