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

IDCAMS Delete command


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

New User


Joined: 22 Oct 2006
Posts: 43

PostPosted: Mon Nov 05, 2007 2:02 pm
Reply with quote

Hi All,

When i issue a delete command using IDCAMS, even if the dataset is migrated it is deleted instantly and if i try to use IEFBR14 and delete a Dataset by using the DISP=(MOD,DELETE,DELETE), it takes longer as it will recall the dataset and then delete it.

Please help me to know the difference between the two. Is there any difference in this delete process. How does IDCAMS delete the dataset withut recalling.
Back to top
View user's profile Send private message
ihatesugar
Warnings : 1

New User


Joined: 22 Oct 2006
Posts: 43

PostPosted: Mon Nov 05, 2007 3:20 pm
Reply with quote

Thanks for the response Murali.

Had a look at the Spool > it says
IDC0896I IDC0896I MIGRATED ENTRY (dataset-name) DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0

not sure how to interpret it. Please let me know what do we infer from this.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Nov 05, 2007 3:23 pm
Reply with quote

Verify the source in QW/manual for IDC*. Then try to get more info on the source..... you will understand.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Nov 05, 2007 3:28 pm
Reply with quote

Quote:
Verify the source in QW/manual for IDC*. Then try to get more info on the source..... you will understand.


Murali, remember, not everybody has quickview installed

giving installation dependent samples will generate useless traffic :-)

but...

If I remember correctly in many cases, ( with or without user confirmation )
a DELETE will be converted to an HDELETE..

the difference the between the two cases in the O/P is
that since there is no dd for the dataset
idcams will not go thru jcl allocation ( so no recall )
a iefbr14 step will have a dd for the dataset,
JCL will make thins happen and recall...
Back to top
View user's profile Send private message
rsa

New User


Joined: 21 Dec 2006
Posts: 2
Location: India

PostPosted: Fri Nov 30, 2007 5:32 am
Reply with quote

Hi Folks,

This works......

//STEP001 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
HDELETE 'XXXX.YYYY.ZZZZ.G0001V00'
HDELETE 'XXXX.YYYY.ZZZZ.G0002V00'
/*
//

This deletes the GDG's & Datasets migrated.

Let me know if you come across any issues.

Thanks,

RSA.
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top