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 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 VALIDATE option in BIND jcl Poha Eater DB2 2 Mon Feb 26, 2018 7:08 pm
No new posts Query on IEFBR14 with GDG Ashishpanpaliya JCL & VSAM 4 Tue Nov 07, 2017 8:34 pm
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm

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