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

Difference in deleting a VSAM file using IDCAMS AND IEFBR14


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

New User


Joined: 24 May 2005
Posts: 4

PostPosted: Tue Jun 21, 2005 4:30 pm
Reply with quote

What is the difference in deleting a VSAM file using IDCAMS AND IEFBR14
is there any difference in syntax and is there any condition where using idcams might create a problem and it goes fine if we use IEFBR14 UTILITY?
Back to top
View user's profile Send private message
sangiah

New User


Joined: 10 Jun 2005
Posts: 62

PostPosted: Thu Jun 23, 2005 1:39 pm
Reply with quote

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
//*
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 FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top