Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Renaming Tape dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Renaming Tape dataset
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    Post subject:
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    Post subject:
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    Post subject: Re: Renaming Tape dataset
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Thu Mar 23, 2006 6:06 pm    Post subject: Re: Renaming Tape dataset
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us