Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Tue Jul 05, 2005 9:10 am Post subject:
Milind,
IEFBR14 is dummy program. You will always get a return code of zero irrespective of the cond code. IDCAMS on the other hand gives specific condition codes which can be used later. So I would suggest that you use IDCAMS instead of IEFBR14.
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
Posted: Fri Jul 08, 2005 2:51 am Post subject:
With IEFBR14 you do not delete a dataset. In fact, with IEFBR14 you do not do anything. It is, as Kolusu says, a dummy program. The delete is actually done by the JCL DISP parameter. You would code DISP=(MOD,DELETE) to do so. Since the normal disposition is DELETE, once the step is over, the file is deleted for you.
Whereas IDCAMS is a program that is used to invoke a lot of TSO commands in batch; DELETE being one of them. Setting of RC (as pointed by Kolusu above) is one good thing about.
Finally, if a dataset is migrated, then with IEFBR14, a recall is done before delete. But, IDCAMS does not do the recall. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum