Jim McAlpine of the IBM Mainframe Discussion List <IBM-MAIN@bama.ua.edu> wrote on 12/11/2009 04:55:59 AM:
> We have a long running batch job that calls IKJTSOEV and then IKJEFTSR to > run a REPRO command. Before calling IKJTSOEV the program allocates SYSTSPRT > as a disk dataset. The sequence of events works and the REPRO completes > with output in the SYSTSPRT dataset but when we deallocate the SYSTSPRT > dataset we get a dynamic allocation error Ret=000004, Err=001056 (hex 420) > which says that we are trying to deallocate an open dataset. We need this > long running task to be able run this sequence of events a number of times. > How can we get the SYSTSPRT dataset closed. RTFM it seems that this would > normally happen at step termination but our batch job could run for hours > servicing requests for work. Your batch program could issue a LINK EP=IDCAMS. Before the link, you would have to allocate SYSIN, open for output, and write the REPRO statement, then close; and allocate SYSPRINT to a disk dataset as DISP=MOD. Regards, John K ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html