Martin, Unless something changed since the last time I looked at this ... You cannot rename a dataset on tape. 1) Your tape management system probably wouldn't like it. 2) The physical tape label info can not be changed after the tape has been created.
AFAIK, your only way to "rename a tape dataset" is to copy it to a new tape. Regards, Ulrich Krueger -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Martin Packer Sent: Friday, November 05, 2010 12:54 PM To: [email protected] Subject: IDCAMS ALTER and GDGs - From A(0) to B(+1) - Relative Generations I'm looking at a customer batch job and they are rolling over 12 monthly files by 1 - the oldest going off to another data set on tape. They are doing this with ICEGENER copy steps. Each monthly file is a different GDG. Rather than do the actual copying I'd like them to explore using some form of rename. In this case it boils down to renaming FILE1(0) to FILE2(+1). IDCAMS ALTER will do it with hardcoded generations and versions. I checked this and that the structure of the target GDG was intact - by coding some JCL on my own system. However, I'd prefer not to have to recommend absolute generations and versions. Does anyone know how to do this with (0) and (+1)? Yes, I'm aware there may be some operational difficulties with this approach - we didn't keep n generations this way. I'm not convinced the customer actually wants to. I want to present them with options. Thanks, Martin Martin Packer, Mainframe Performance Consultant, zChampion Worldwide Banking Center of Excellence, IBM +44-7802-245-584 email: [email protected] Twitter / Facebook IDs: MartinPacker ---------------------------------------------------------------------- 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

