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

Parameters are need while using IEFBR14 to delete datasets ?


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

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Thu May 28, 2009 12:37 pm
Reply with quote

Hi All ..

I am using the following code.

Code:
//PS000   EXEC PGM=IEFBR14                                             
//SYSTSPRT  DD SYSOUT=*                                                 
//SYSPRINT  DD SYSOUT=*                                                 
//DD01      DD DSN=my-file-name ,                 
//             DISP=(MOD,DELETE,DELETE),                               
//             MGMTCLAS=STANDARD,STORCLAS=BASE,                         
//             AVGREC=K,SPACE=(4096,(1,2),RLSE)                         
//             RECFM=VB,LRECL=12284       


Can you pls clarify which all parameters are required and in case I am missing some/using some extra

thanks in advance
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 28, 2009 12:48 pm
Reply with quote

You need the DSN, DISP=(MOD,DELETE,DELETE) and space parameters for it to work.
Usually SPACE=(TRK,0) will suffice.

But the interest is why do you not use IDCAMS
Back to top
View user's profile Send private message
sunny_io

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Thu May 28, 2009 1:05 pm
Reply with quote

The file I'm using as input has symbolic parameters in its name..
So I am not using IDCAMS as giving the datasets in SYSIN card.
the job dosn't resolve them so I opted the IBM dummy IEFBR14 program..

Does it effect the performance or depict naive coding ?

Appreciate the concern.

Thanks
Sunny
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu May 28, 2009 2:02 pm
Reply with quote

Hi,

the difference between using IEFBR14 and IDCAMS is that if the dataset is migrated, IEFBR14 will recall the dataset back to disk and then delete it,
IDCAMS will issue a HDELETE instead.


Gerry
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 Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
Search our Forums:

Back to Top