IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Renaming Tape dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vidusha

New User


Joined: 01 Feb 2006
Posts: 20
Location: Chennai

PostPosted: Thu Mar 23, 2006 2:30 pm
Reply with quote

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
View user's profile Send private message
KS

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Thu Mar 23, 2006 3:47 pm
Reply with quote

I think u have to use the utility IEBCOPY..Not very sure.

Thanks,
KS
Back to top
View user's profile Send private message
ranjitbhingare

New User


Joined: 30 Nov 2005
Posts: 94
Location: PUNE

PostPosted: Thu Mar 23, 2006 4:37 pm
Reply with quote

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
View user's profile Send private message
vidhyanarayanan

New User


Joined: 23 Dec 2005
Posts: 52

PostPosted: Thu Mar 23, 2006 5:39 pm
Reply with quote

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
View user's profile Send private message
Vidusha

New User


Joined: 01 Feb 2006
Posts: 20
Location: Chennai

PostPosted: Thu Mar 23, 2006 5:47 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Mar 23, 2006 6:06 pm
Reply with quote

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
View user's profile Send private message
vidhyanarayanan

New User


Joined: 23 Dec 2005
Posts: 52

PostPosted: Fri Mar 24, 2006 11:46 am
Reply with quote

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
View user's profile Send private message
Vidusha

New User


Joined: 01 Feb 2006
Posts: 20
Location: Chennai

PostPosted: Fri Mar 24, 2006 2:51 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Deleting a Tape file JCL & VSAM 14
Search our Forums:

Back to Top