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

difference between IDCAMS & IEFBR14


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

New User


Joined: 06 Jul 2010
Posts: 12
Location: hyderabad

PostPosted: Thu Mar 10, 2011 12:46 am
Reply with quote

Hi,

I know that we can use either IDCAMS or IEFBR14 to delete a VSAM file. Could you please let me know which is the effective one and why?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 10, 2011 12:54 am
Reply with quote

IEFBR14 is a do-nothing program -- literally all it does is issue an Assembler BR 14 command (which returns to the calling program). If you are allocating or deleting a file in JCL, you can use an IEFBR14 step to accomplish that. Since the file is not opened by IEFBR14, there are times when it makes sense to use it -- just as there are times when it makes sense to use IDCAMS. If you are deleting the VSAM file before defining it again, why not use one step of IDCAMS instead of an IEFBR14 step AND an IDCAMS step to define the VSAM file?

Bottom line: they are both effective and useful. Which to select depends upon external factors, such as whether the file is being defined again in the job.
Back to top
View user's profile Send private message
omprakash.mf

New User


Joined: 06 Jul 2010
Posts: 12
Location: hyderabad

PostPosted: Thu Mar 10, 2011 1:01 am
Reply with quote

Thanks Robert
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu Mar 10, 2011 1:09 am
Reply with quote

Omprakash,
In addition to Robert's response, you will find below topic on the forum relevant to your question. It talks about using these utilities to delete the migrated datasets.

http://ibmmainframes.com/about47330.html
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 Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts What is the difference between Taskty... Compuware & Other Tools 2
No new posts IDCAMS listcat service using cobol JCL & VSAM 1
No new posts Difference between VALIDPROC and CHEC... DB2 3
Search our Forums:

Back to Top