Private is not an ALLOCATE command parameter. If it is the volume serial number use VOLUME(volume) parameter. I would ignore this parameter at all and get a scratch tape, as you specified NEW as the disposition. Your tape management product will find you one.
Itschak Itschak Mugzach, Director SecuriTeam Software ltd. Tel: +972 (522) 986404 Skype: Securiteam-Software Email: [EMAIL PROTECTED] Gmail: [EMAIL PROTECTED] for large mails -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Hal Merritt Sent: Thursday, January 24, 2008 6:51 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Dynamic tape in Rexx? 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: IBM-MAIN@BAMA.UA.EDU 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 ---------------------------------------------------------------------- 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