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

NEED TO COPY SET OF DATASETS IN TAPE TO DISK


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

New User


Joined: 06 Aug 2008
Posts: 22
Location: chennai

PostPosted: Thu Jul 23, 2009 11:41 am
Reply with quote

Hi,

I have a requirement of deleting the datasets which is in TAPE. since i cannot delete the datasets in TAPE directly, first i have to move all the datasets from TAPE to DISK and then we can delete those datasets.

can anyone help me by any UTILITY so that all the datasets in TAPE are converted to DISK in one shot and then using IDCAMS we can delete those datasets.

Thanks in Advance
Hari
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 23, 2009 11:46 am
Reply with quote

Please explain what you mean by "cannot delete the datasets on tape"

IDCAMS DELETE will work for tapes as well as DASD.

The tapes may be under special retention, in which case you will need to talk to your storage management people to do the required.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Jul 23, 2009 12:18 pm
Reply with quote

Hari,

Try using HDELETE for deleting migrated datasets without recalling.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 23, 2009 12:29 pm
Reply with quote

IDCAMS DELETE will automatically switch to HDELETE if it detects that the dataset is migrated, and delete the dataset without recall
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Jul 23, 2009 12:39 pm
Reply with quote

Thanks Expat.

Shared it as HDELETE is a TSO command and OP can just use it instead of coding a JCL.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Jul 23, 2009 12:42 pm
Reply with quote

Hari,

Quote:
first i have to move all the datasets from TAPE to DISK and then we can delete those datasets.


Need explanation on "all". Do you want to delete all the datasets from tape?

If there are any common qualifiers in the datasets, then you can write a REXX exec to get the expanded list and then using IDCAMS/TSO HDELETE to delete the same.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 23, 2009 12:47 pm
Reply with quote

Also, please see THIS thread for a little utility that I have posted previously to do exactly what you want.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Jul 23, 2009 12:54 pm
Reply with quote

Quote:
Also, please see THIS thread for a little utility that I have posted previously to do exactly what you want.


Thanks.

Hari,


This is one good example to prove that everything is available in this forum and all you need is to SEARCH icon_biggrin.gif
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 VB to VB copy - Full length reached SYNCSORT 8
No new posts CA Disk LISTD SQL CA Products 1
No new posts Deleting a Tape file JCL & VSAM 14
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
Search our Forums:

Back to Top