|
View previous topic :: View next topic
|
| Author |
Message |
Vidusha
New User
Joined: 01 Feb 2006 Posts: 20 Location: Chennai
|
|
|
|
Hi,
To rename a tape dataset i used the below JCL
//STEP01 EXEC PGM=IEHPROGM,REGION=4M
//SYSPRINT DD SYSOUT=*
//DD1 DD UNIT=3480,VOL=SER=A49202,DISP=OLD
//SYSIN DD *
RENAME DSNAME=XXXX.XXXX.XXXX,VOL=3480=A49202, X
NEWNAME=YYYY.YYYY.YYYY
/*
But it abended with below error
SYSTEM SUPPORT UTILITIES ---- IEHPROGM
RENAME DSNAME=XXXX.XXXX.XXXX,VOL=3480=A49202,
IEH202I INVALID KEYWORD OR CONTROL STATEMENT SYNTAX
NEWNAME=YYYY.YYYY.YYYY
IEH215I SYNTAX ERROR ENCOUNTERED IN NAME FIELD OF CONTROL STATEMENT-PROCESSIN
IEH202I INVALID KEYWORD OR CONTROL STATEMENT SYNTAX
UTILITY END
I couldn't figure out my mistake here..Can anyone help me out..
Thanks
Vidusha |
|
| Back to top |
|
 |
KS
New User

Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
I think u have to use the utility IEBCOPY..Not very sure.
Thanks,
KS |
|
| Back to top |
|
 |
ranjitbhingare
New User
Joined: 30 Nov 2005 Posts: 94 Location: PUNE
|
|
|
|
Hi,
I think Your DD statement should be
//DD1 DD DSN=XXXX.XXXX.XXXX,DISP=OLD
//SYSIN DD *
RENAME DSNAME=XXXX.XXXX.XXXX,VOL=3480=A49202,
NEWNAME=YYYY.YYYY.YYYY
/*
This should work.
Please correct me if I am wrong...
Regards,
Ranjit |
|
| Back to top |
|
 |
vidhyanarayanan
New User

Joined: 23 Dec 2005 Posts: 52
|
|
|
|
Hi,
I THINK YOU HAVE TO MENTION THE DSN IN DD1. AND IEBCOPY WILL NOT WORK FOR RENAMING TAPE DATASETS. THE UTILITY YOU HAVE USED IS CORRECT. CHANGE THE DD STATEMENT AND TRY.
with regards,
vidhya |
|
| Back to top |
|
 |
Vidusha
New User
Joined: 01 Feb 2006 Posts: 20 Location: Chennai
|
|
|
|
Hi,
I have progressed a bit...
I moved RENAME statement a bit and started the NEWNAME at 16th column. So now it accepts the statement.But encountered another problem
IEH207I STATUS OF USERS REQUEST TO RENAME DATA SET XXXX.XXXX.XXXX
VOLUME I.D. ACTION TAKEN REASON FOR TAKING THIS ACTION
NONE VOL COUNT IS ZERO OR LIST NOT IN REGION.
I understand that the volume is not available. But when i referred the job which created the dataset it shows UNIT=3480 and from 3.4 i could get the Vol as A49202.
I have doubt, is it anything to do with UNIT=3480, as it is IBM defined generic unit names?
Many thanks for your help
Vidhya |
|
| Back to top |
|
 |
priyesh.agrawal
Senior Member

Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Vidusha,
AFAIK, it is not possible to RENAME a TAPE dataset, you may want to copy it to a new one (with the updated name).
Regards,
Priyesh. |
|
| Back to top |
|
 |
vidhyanarayanan
New User

Joined: 23 Dec 2005 Posts: 52
|
|
|
|
Hi,
I GUESS IT HAS NOTHING TO DO WITH UNIT. IT IS TO REQUEST THE SYSTEM TO PLACE THE DATASET ON A SPECIFIC DEVICE, UNIT=3480 IS JUST A DEVICE TYPE. AND VOLUME PARAMETER WILL IDENTIFY THE VOLUME IN WHICH THE DATASETS RESIDE OR WILL RESIDE. SO, THEY ARE DIFFERENT.....
hope this ll help u a bit.
regards,
vidhya |
|
| Back to top |
|
 |
Vidusha
New User
Joined: 01 Feb 2006 Posts: 20 Location: Chennai
|
|
|
|
Hi,
Yes.. It is correct..
But i have come across that UNIT=3480 is IBM defined generic unit ..But it is nothing to do with the way tape dataset works.
As Priyesh said i think it is not possible to rename a tape dataset..
Thanks for the help
Vidusha |
|
| Back to top |
|
 |
|
|