First, dynamically allocating tape drives is a bit tricky. IIRC, the allocation fails if there are none available because only an authorized caller can wait.
Second, I've never heard of the use of 'private' in JCL. It's either a real serial number or not specified. It appears as PRIVAT in some messages as the tape management system substitutes a suitable scratch serial number. Perhaps you have some local tape allocation exit in the loop. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Jeffrey Deaver Sent: Thursday, January 24, 2008 8:23 AM To: [email protected] Subject: Dynamic tape in Rexx? We would like to dynamically copy a file to tape inside a Rexx routine. But we're having trouble getting the new tape allocate to work in Rexx... "ALLOC DA('"DSN"') F(SYSUT2) NEW KEEP UNIT(TAPE) PRIVATE" This doesn't work as the volser PRIVATE, which would we typically use in JCL, is not accepted. Anyone know how I can do this? Thanks. Jeffrey Deaver, Engineer Systems Engineering [EMAIL PROTECTED] 651-665-4231(v) 651-610-7670(p) ---------------------------------------------------------------------- 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 NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ---------------------------------------------------------------------- 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

