View previous topic :: View next topic
|
Author |
Message |
friend_prasad
New User
Joined: 06 Jan 2006 Posts: 12
|
|
|
|
PLS TELL ME HOW TO DELETE THE EXISTING DATASET USING THE IEFBR14 UTILITY
THANKS |
|
Back to top |
|
|
friend_prasad
New User
Joined: 06 Jan 2006 Posts: 12
|
|
|
|
HOW TO CREATE A DATASET USING COBOL NOT JCL
PLS REPLY
THANKS |
|
Back to top |
|
|
thanooz
New User
Joined: 28 Jun 2005 Posts: 99
|
|
|
|
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 |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
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 |
|
|
|