IEF-RUNTIME-PARM1 and IEF-RUNTIME-PARM2 are the first two parameters passed from programs generated through CA Gen. These must be coded on the entry statement of the stub and should always be passed in this order to any subordinate routines called.
For IMS applications, these parameters are the IO-PCB and ALT-IO-PCB. In CICS applications, these parameters are DFHEIBLK and DFHCOMMAREA. These parameters are not used for TSO and batch applications but must still be present.
A special modification is needed for action blocks compiled with the CICS translator (precompiler). If you add CICS commands or need to reference fields in DFHEIBLK, you must use the CICS translator. If so, you must remove IEF-RUNTIME-PARM1 and IEF-RUNTIME-PARM2 from the LINKAGE SECTION and from the USING statement at the beginning of the PROCEDURE DIVISION. The translator inserts DFHEIBLK and DFHCOMMAREA to replace them. Failure to remove them usually results in an ASRA abend on the first move of data to the export views.
If the target TP monitor is CICS, but you have added no CICS commands to the External Action Block and do not reference any fields of the DFHEIBLK, you can compile without using the CICS translator. If you do so, do not remove IEF-RUNTIME-PARM1 and IEF-RUNTIME-PARM2.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|