Joined: 22 Apr 2006 Posts: 6258 Location: Mumbai, India
Was looking at this thread. and was not sure if IEFBR14 can abend?
After all this is the only machine code of IEFBR14:
SR R15,R15 put zero into register 15 (return code)
BR R14 branch to the address in register 14 (return to scheduler)
Unless some programmer write his own program with name IEFBR14 and use a steplib to point to it - he might have a surprise to have Sx13 kind of abend, otherwise what will issue an abend? I might be wrong, and not sure what exactly needs to be done to understand this fact.
Other point which is made about DISP - I believe, that's a JCL error, not sure if it's a perception difference but then RC from such a JCL eecuting only IEFBR14 with wrong DISP should be a blame on IEFBR14? IEFBR14 was created because while DD statements can create or delete files easily, they cannot do so without a program to run. The program used in the JCL does not actually need to use the files to cause their creation or deletion — the DD DISP=... specification does all the work. Thus a very simple do-nothing program was needed to fill that role, right?