I find this suggestion interesting -so i could issue something like this ?MYRC
= bpxwunix ('ls -l',,out.) If MYRC = 0 then
---------- Original Message ----------
From: Rupert Reynolds <[email protected]>
To: [email protected]
Subject: Re: Obtaining the Return Code from bpxwunix in a REXX progrm,
Date: Sun, 3 Aug 2025 21:03:06 +0100
If BPXWUNIX is a function and you call it instead of using
answer=bpxwunix(arguments) then the result goes in special variable RESULT
I wouldn't expect a shell variable such as $? to exist in Rexx after call
bpxwunix, but I like surprises :-)
Roops
On Sun, 3 Aug 2025, 17:24 Paul Gilmartin, <
[email protected]> wrote:
> On Sun, 3 Aug 2025 15:49:59 +0000, Sri Hari Kolusu wrote:
>
> >Bpxwunix uses STDOUT and STDERR for the output and error processing. So,
> add them to your CALL statement
> >
> The names STDOUT and STDERR are not special; any
> compound symbols are acceptable.
> So:
> >call bpxwunix cmd,,,stdout.,stderr.
> >
> Night equally well be:
> >call bpxwunix cmd,,,'foobar.','wombat';
>
> (I believe quoting prevents REX evaluating symbols
> if SIGNAL ON NOVALUE.)
>
> --
> gil
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN