View previous topic :: View next topic
|
Author |
Message |
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Was looking at this thread. and was not sure if IEFBR14 can abend?
After all this is the only machine code of IEFBR14:
Code: |
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? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Anuj,
Quote: |
was not sure if IEFBR14 can abend |
Any program that can be executed can abend. . . Might not be very likely, but can happen. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Thanks Dick. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I can certainly recall getting an abend from IEFBR14 |
|
Back to top |
|
|
|