Yes, that's correct.

Jol fixes all that sort of thing up automatically for you.

Clem

Schwarz, Barry A wrote:
It was explained to me a long time ago by someone who used to read the 
microfiche that when a dataset is found in the Pass Queue, it is removed from 
the queue.  The work around (from foggy memory) was to add a VOL=REF=*.xx 
(SYSUT1 in your example) to any subsequent DD statements.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Edward Jaffe
Sent: Friday, January 28, 2011 6:15 PM
To: [email protected]
Subject: Second Reference to Temporary Data Set Fails

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

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


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

Reply via email to