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

How to use Purge option with IEFBR14


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

New User


Joined: 21 Dec 2005
Posts: 3

PostPosted: Fri Jan 19, 2007 12:20 am
Reply with quote

Hi,

I am using IEFBR14 to delete the dataset but getting below error:
IGD17105I CATALOG ERROR WHILE DELETING DATA SET
RETURN CODE IS 84 REASON CODE IS 0 IGG0CLFK

When I checked explanation of RC84, it advised me to use purge option as file is created with expiration date.

Can anyone advise using purge option with IEFBR14?

My step is as below:
//SAE771A5 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=S
//DD01 DD DSN=FD886883.TEMP,
// DISP=(OLD,DELETE,DELETE)

Thanks.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Jan 19, 2007 1:18 am
Reply with quote

Hello

I don't know of anyway to 'purge' with IEFBR14

You can try IDCAMS though

Code:

//PURGE100 EXEC PGM=IDCAMS                 
//SYSPRINT DD DUMMY                         
//SYSIN DD *                               
  DELETE 'YOUR.PS.W.EXPIREDT' PURGE             
Back to top
View user's profile Send private message
jainy_rajnish

New User


Joined: 21 Dec 2005
Posts: 3

PostPosted: Fri Jan 19, 2007 1:31 am
Reply with quote

Hi Dave,

Thanks for the reply. I know I can use IDCAMS but just wanted to know if we can purge using IEFBR14.

Rajnish
Back to top
View user's profile Send private message
jinal_mca

New User


Joined: 05 Jan 2007
Posts: 22
Location: Pune, India

PostPosted: Wed Jan 24, 2007 12:46 pm
Reply with quote

i m sure that purge option can be used with idcams utility only so try tht with it only

cya
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Jan 24, 2007 3:05 pm
Reply with quote

For IEFBR14 in order to avoid catalog error messages:

Code:
DISP=(MOD,DELETE,DELETE),
SPACE=(TRK,0)


If the dataset doesn't exist it will be created and deleted immediately.
Back to top
View user's profile Send private message
jainy_rajnish

New User


Joined: 21 Dec 2005
Posts: 3

PostPosted: Thu Jan 25, 2007 12:46 am
Reply with quote

George,

File is already catalogued so this will not work.

Thanks all.

I am finally using IDCAMS.

Rajnish
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 SCOPE PENDING option -check data DB2 2
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts CICS vs LE: STORAGE option CICS 0
No new posts INSYNC option with same function as I... JCL & VSAM 0
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
Search our Forums:

Back to Top