Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to use Purge option with IEFBR14

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to use Purge option with IEFBR14
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    Post subject: Re: How to use Purge option with IEFBR14
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    Post subject:
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: 23
Location: Pune, India

PostPosted: Wed Jan 24, 2007 12:46 pm    Post subject: hi
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Wed Jan 24, 2007 3:05 pm    Post subject:
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    Post subject:
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    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 BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts ICETOOL higher option Anshul Das DFSORT/ICETOOL 14 Thu Apr 14, 2016 8:00 am
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us