Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
difference between IDCAMS & IEFBR14

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: difference between IDCAMS & IEFBR14
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: 8280
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 10, 2011 12:54 am    Post subject:
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    Post subject:
Reply with quote

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

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Thu Mar 10, 2011 1:09 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm
No new posts Query on IEFBR14 with GDG Ashishpanpaliya JCL & VSAM 4 Tue Nov 07, 2017 8:34 pm
No new posts Finding difference between two PS fil... Vignesh Sid SYNCSORT 5 Mon Oct 30, 2017 1:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us