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.
--
Edward E Jaffe
Phoenix Software International, Inc
831 Parkview Drive North
El Segundo, CA 90245
310-338-0400 x318
[email protected]
http://www.phoenixsoftware.com/
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html