On 5/14/2012 6:59 AM, Ken MacKenzie wrote:
> Hi, does anyone have much experience with the REXX compiler?
>
> I'm trying it out for a developer, who for various reasons cannot access
> it himself.
>
> I have two execs, which I did not write, let's call them A and B. B's
> only function is to output messages and A calls B repeatedly. In order to
> establish B's availability, A issues a straightforward TSO command: B. If
> B gives RC=0 then it knows it's OK and continues, otherwise it exits with
> RC=8.
>
> I have compiled A and B as CEXEC and everything worked OK. Now I want to
> try compiling as OBJECT but when I do, the first B command (as above)
> fails with RC non zero and I can't see how to force B into the picture so
> that A can find it.
>
> Does this make sense? Does anyone have any ideas?
Try something like this:
//------------ JOB -----------
//CANDL EXEC REXXL,STUB=MVS
//PLKED.SYSIN DD DISP=SHR,DSN=your_object_library(QRDRS)
//LKED.SYSLMOD DD DISP=SHR,DSN=your_load_library
1. The choices for STUB= are: MVS, CPPL, CALLCMD, EFPL, CPPLEFPL
I would guess you want MVS or CALLCMD; may take some experimenting,
and EFPL might be viable for you
2. You can probably make the PLKED.SYSIN a temporary
file passed from a previous step in the same job that
does a compile and places the object deck in the
temporary file
3. Your exec names must be 7 characters or less in length