sangiah
New User
Joined: 10 Jun 2005 Posts: 62
|
|
|
|
both does the same job where iefbr14 returns 0 always (whether the delete is successful or not) where as in idcams u need to provide the sysin delete parameter.
IDCAMS retruns non-zero return code for any problems in deleting the VSAM
in case the vsam is not present IEFBR14 retruns 0 whereas IDCAMS retruns 08.
IEFBR14
//STEP0010 EXEC PGM=IEFBR14
//VSAM1 DD DSN=VSAM1.FILE1,DISP=(MOD,DELETE,DELETE),
// SPACE=(TRK,(1,1))
IDCAMS
//STEP0010 EXEC PGM=IDCAMS
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE VSAM1.FILE1 PURGE CLUSTER
//* |
|