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 a tape dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
poongs
Warnings : 1

New User


Joined: 24 Jan 2007
Posts: 28
Location: pune

PostPosted: Wed Jul 14, 2010 12:24 pm    Post subject: renaming a tape dataset
Reply with quote

Hi All,

I have the follwoing requirement.
I need to rename some old tape files and copy the new test file to the old tape file(old file name). I had been testing the rename with the IDCAMS alter option. But it doesn't look like we can rename tape files as it's not working. Please let me know a way of achieving this.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed Jul 14, 2010 12:31 pm    Post subject: Reply to: renaming a tape dataset
Reply with quote

Have you reviewed the other topics on this same subject?

http://www.ibmmainframes.com/viewtopic.php?t=31407
http://www.ibmmainframes.com/viewtopic.php?t=12576
http://www.ibmmainframes.com/viewtopic.php?t=9927
Back to top
View user's profile Send private message
poongs
Warnings : 1

New User


Joined: 24 Jan 2007
Posts: 28
Location: pune

PostPosted: Wed Jul 14, 2010 12:38 pm    Post subject:
Reply with quote

Hi Superk,

Thanks for the reply, i did go thru these topics..but still wanted to confirm the fact that we cannot rename a tape dataset. So for my requirement, can i follow the below procedure:
1) copy the old tape dataset to a new name(for backup purpose)
2) delete the old tape dataset
3) copy the new test dataset(with updated records) to the old tape dataset(old file's name to be used here).

Please confirm.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8657
Location: Back in jolly old England

PostPosted: Wed Jul 14, 2010 12:44 pm    Post subject:
Reply with quote

In theory it looks OK, but if you intend to use the same tapes as well as the same dataset name for the new test files then you may hit some issues with your TMS.

Suggest that you do the copy of the original files to a newname, delete the existing originals, and then recreate using different tape(s).
Back to top
View user's profile Send private message
poongs
Warnings : 1

New User


Joined: 24 Jan 2007
Posts: 28
Location: pune

PostPosted: Wed Jul 14, 2010 12:53 pm    Post subject:
Reply with quote

I'm not exactly getting
[/quote]

Can you please elaborate on this. Curretly i'm providing the following details for creating a new tape dataset.
DISP=(NEW,CATLG,DELETE),
UNIT=VTAPE,
DCB=(BLKSIZE=0,LRECL=187,RECFM=FB),
SPACE=(CYL,(500,50),RLSE),

I don't need to mention any Volume information for creating a tape datset in my shop.
Back to top
View user's profile Send private message
poongs
Warnings : 1

New User


Joined: 24 Jan 2007
Posts: 28
Location: pune

PostPosted: Wed Jul 14, 2010 12:54 pm    Post subject:
Reply with quote

Sorry the quote in the bove post is the following text
Quote:

and then recreate using different tape(s).
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8657
Location: Back in jolly old England

PostPosted: Wed Jul 14, 2010 12:56 pm    Post subject:
Reply with quote

That's fine, it is just that in your original explanation it was not clear whether you wanted to reuse the original tapes or not. As you do not then there is no problem.
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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts Tape file issue abdulrafi JCL & VSAM 2 Thu Feb 08, 2018 12:01 pm
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm

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