On Fri, 11 Jan 2013 14:29:42 -0600, Steve Thompson wrote:
>Does anyone know of any reason why a subroutine in REXX can do an
>allocation that gives RC=0 and then in the main routine an EXECIO fails
>(RC=20), and a FREE DDN(xxx) (where xxx is the same DDName from the alloc)
>fails saying that the DD is not allocated?
>
>The subroutine is NOT using PROCEDURE, so things are not being hidden
>(where EXPOSE would be needed...).
>
>Granted, I have "syscalls('ON)" and that environment exists. And if I
>hadn't done an ADDRESS "TSO" the EXECIO and FREE would fail with ye good
>ole +++ RC(-3) +++ (Command not found).
>
You mention OMVS and the need for an explicit "address TSO".
If you start an EXEC in OMVS which does "address TSO" that TSO
process runs in a separate address space, and its DDNAMEs are not
accessible in the parent process.
You might do better with "call BPXWDYN(...)" than with "address TSO".
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN