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

How to delete migrated datasets without recall


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

New User


Joined: 01 Feb 2007
Posts: 1
Location: Greenville,SC

PostPosted: Fri Feb 02, 2007 6:29 pm
Reply with quote

Is there a way to get allocation not to generate a DFHSM recall for a dataset which is going to be deleted by IEFBR14 through a DD statement? These datasets may or may not exist at the time the IEFBR14 runs and therefore have the following disposition parameter (MOD,DELETE,DELETE).

They also may or may not be migrated by DFHSM to ML2. In the case where
they are migratied, allocation recalls the dataset before it is deleted
causing delays in the job run time waiting for the recall.
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Fri Feb 02, 2007 6:52 pm
Reply with quote

You could used the following step in front of the IEFBR14.

Code:

//HDEL001   EXEC  PGM=IKJEFT01,                                     
// PARM=' HDELETE ''HLQ.DATASET.HERE'' WAIT PURGE' 
//SYSTSPRT  DD  SYSOUT=*                                           
//SYSTSIN   DD  DUMMY


This JCL will perform a migration delete (if the file is migrated) and wait on it to be deleted. You can READ about the HDELETE command by entering TSO HELP HDELETE on the command line.
Back to top
View user's profile Send private message
TizMe

New User


Joined: 05 Jan 2006
Posts: 72

PostPosted: Tue Feb 06, 2007 8:32 am
Reply with quote

I code my jobs like this.

It will allways return CC=0 and will not rquire a HSM RECALL.

Code:
//STEP000  EXEC PGM=IDCAMS               
//SYSIN   DD *                           
  DELETE dataset.number.one             
  DELETE dataset.number.two
  DELETE dataset.number.three
  SET MAXCC=0                             
/*                                       
//SYSPRINT DD SYSOUT=*                   
//*                                       
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Feb 06, 2007 9:15 am
Reply with quote

Hello,

If the job gets to the dataset allocate in the br14, it is already too late - so deleting migrated datasets via br14 is not usually a good choice.

If you are only running the br14 to do some one-time housekeeping, you can also delete the file(s) in tso with no reacll.

If this is a regular job and you need to do this delete each run, the previous suggestions should work well for you.
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 DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts How Can I Recall a Migrated Data Set ... PL/I & Assembler 3
Search our Forums:

Back to Top