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

HOW TO DELETE THE EXISTING DATASET USING IEFBR14


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
friend_prasad

New User


Joined: 06 Jan 2006
Posts: 12

PostPosted: Thu Mar 16, 2006 3:34 pm
Reply with quote

PLS TELL ME HOW TO DELETE THE EXISTING DATASET USING THE IEFBR14 UTILITY
THANKS
Back to top
View user's profile Send private message
friend_prasad

New User


Joined: 06 Jan 2006
Posts: 12

PostPosted: Thu Mar 16, 2006 3:36 pm
Reply with quote

HOW TO CREATE A DATASET USING COBOL NOT JCL
PLS REPLY
THANKS
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Thu Mar 16, 2006 4:21 pm
Reply with quote

hi frien _prasd,

//DELETE1 EXEC PGM=IEFBR14
//DD01 DD DSN=urdatasetname,UNIT=SYSDA,
// DISP=(MOD,DELETE,DELETE)


I think this will help u,
thank's
thanooz.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Thu Mar 16, 2006 8:22 pm
Reply with quote

hy prasad,

generally this is made by specifying the DISP parameter.

if your dataset exists indeed, well code DISP=(OLD,DELETE)

if you are not sure if the dataset exists, then code DISP=(MOD,DELETE),
this means: if exists then it is like DISP=(OLD,DELETE),
if not then MOD is like NEW, therefore you should give at leat
a minimum space amount SPACE=(TRK,1)

note: IEFBR14 gives always RC=0 in register 14,
no matter how the step ends!

martin9
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top