I think this explains the passed data set restriction seen. I believe the example found in section 4.1.1.2.1 is incorrect and is a doc error.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/iea2b560/4.6.2.1.5?SHELF=&DT=20100701093058&CASE= 4.6.2.1.5 Passing a Data Set Do not try to receive a passed data set more times than it is passed. When a passed data set is received, the passed data set information is no longer available to later DD statements in the receiving step or later steps. Therefore, a VOLUME=REF parameter that refers to the passed data set must appear on a DD statement before the receiving DD statement. For example: //JEX JOB ACCT27,'GALE RUCINSKI' //S1 EXEC PGM=A //DA DD DSNAME=MYDATA,DISP=(NEW,PASS), // SPACE=(800,15),UNIT=DISK //S2 EXEC PGM=B //DB DD DSNAME=REPT,DISP=(NEW,PASS), // SPACE=(800,15),UNIT=DISK,VOLUME=REF=MYDATA //DC DD DSNAME=*.S1.DA,DISP=SHR -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Paul Gilmartin Sent: Saturday, January 29, 2011 11:10 AM To: [email protected] Subject: Re: Second Reference to Temporary Data Set Fails On Fri, 28 Jan 2011 18:14:50 -0800, Edward Jaffe wrote: > >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. > Armed with a priori knowledge of the correct answer, I went looking for the restriction. I found, to the contrary, that it's supposed to work: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/iea2b560/4.1.1.2.1 ... but fails with the error you got. PMR Record 60499,033,000 has been submitted to IBM. I hope they don't persist in their habit of changing the rules whenever a customer reports a problem they feel like not fixing. I hate JCL! -- gil ---------------------------------------------------------------------- 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

