The good news is that you don't need the SYSUT1 when PARM=NEW. Just 
take it out and it will work. In fact, you don't need a separate step to 
allocate 
the temporary data set.

Bill

On Fri, 28 Jan 2011 18:14:50 -0800, Edward Jaffe wrote:

>Obviously, IANFJE (I ain't no friggin JCL expert). But, it seems to me that 
>this
>should work:
>
>//JCLERROR JOB ...
>//AGMLENU  EXEC PGM=IEFBR14
>//GML      DD  DSN=&&GML,UNIT=SYSALLDA,
>//             RECFM=FB,LRECL=80,BLKSIZE=0,
>//             DISP=(NEW,PASS),SPACE=(TRK,(1,1,1))
>//IGMLENU  EXEC PGM=IEBUPDTE,PARM=NEW
>//SYSPRINT DD SYSOUT=*
>//SYSUT1   DD DSN=&&GML,DISP=(OLD,PASS)
>//SYSUT2   DD DSN=&&GML,DISP=(OLD,PASS)
>//SYSIN    DD DATA,DLM='^%'
>./ ADD NAME=NAME1
>DATA
>^%
>//
>
>It fails with:
>
>IEF212I JCLERROR IGMLENU SYSUT2 - DATA SET NOT FOUND
>
>If it can find the data set for SYSUT1, then why can't it find it for SYSUT2? 
It
>works fine when a normal cataloged data set is used. It fails only with a
>temporary data set. We can't find this restriction documented.
>

----------------------------------------------------------------------
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

Reply via email to