On Fri, 11 Jan 2013 14:29:42 -0600, Steve Thompson <[email protected]> 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).
>
>And I do know that the allocation worked, because 3.4 shows the file with
>all the attributes used on the allocate command.
>
With as little information as you've provided, one can only guess. RC=20
is a sever error. What does the code look like? Could you have a typo
somewhere in the DDName. Any messages in the syslog or joblog? Are
you running this interactively or in batch? Are you running from TSO
or from an OMVS shell if interactively?
Mark
--
Mark Zelden - Zelden Consulting Services - z/OS, OS/390 and MVS
mailto:[email protected]
Mark's MVS Utilities: http://www.mzelden.com/mvsutil.html
Systems Programming expert at http://expertanswercenter.techtarget.com/
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN