View previous topic :: View next topic
|
Author |
Message |
omprakash.mf
New User
Joined: 06 Jul 2010 Posts: 12 Location: hyderabad
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
omprakash.mf
New User
Joined: 06 Jul 2010 Posts: 12 Location: hyderabad
|
|
|
|
Thanks Robert |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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 |
|
|
|