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

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
viewtopic.php?f=9&t=8004&hilit=CONSOLE&start=10
see my snippet

in the snippet the <command> is hardcoded, should not be that difficult to pass it as a parameter
regards
Enrico
enrico-sorichetti
 
Posts: 2047
Joined: Fri Apr 18, 2008 11:25 pm

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: 265
Joined: Mon Oct 25, 2010 2:24 pm


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post