On Sun, 3 Jun 2012 11:47:23 -0500, Paul Gilmartin <[email protected]> wrote:
>
>Should I infer from this that conversely it runs concurrently
>in background and does not tie up the terminal if output is
>directed to SYSOUT or ODS? If so the above EXEC needs a
>WAIT to guarantee that the output is complete. (Or does
>ENQ SHR handle this?)
>
>-- gil
>
ENQ does not handle this. I wrote a rexx a long time ago that would issue any
HSM command and trap the output as suggested earlier in this thread. Long
running commands would cause the ALLOCATE command to fail due to dataset in
use. I had to add a loop issuing:
Address ispexec 'LMINIT DATAID(TRAP) Dataset('dsname') ENQ(SHR)'
until it returned RC =0. Crude, but effective.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN