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
 
How to delete migrated datasets without recall

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to delete migrated datasets without recall
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    Post subject: Re: IEFBR14
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    Post subject:
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

Site Director


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

PostPosted: Tue Feb 06, 2007 9:15 am    Post subject:
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    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 Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm

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