Set the
type property to
localCall when
any of the following situations apply:
- You are generating a Java™ program
that calls a generated Java program
that runs in the same JVM as the calling program. In this case, EGL
middleware is not in use, and the following properties are meaningful
for a callLink element in which pgmName identifies
the called program:
- alias
- package
- pgmName
- type
In the above case, if your called program is in the same package
as the program calling it, or if the name for the called program is
identical to the part name for that program, then you do not need
to specify a callLink element for the called
program.
- You are generating a z/OS® batch
COBOL program that calls, or is called by, another COBOL program on
the same system. In this case, the following properties are meaningful
for a callLink element in which pgmName identifies
the called program:
In the above case, you do not need to specify a callLink element
for the called program if the alias property has been set for the
program, and you want the call to be implemented as a dynamic COBOL
call, as is appropriate for another COBOL program.
Note: You must specify
a callLink element for a local call for
non-CICS z/OS environments
if you need to call a PL/I program.
- You are generating a CICS® COBOL
program that calls, or is called by, another COBOL program in the
same CICS region (so long as
the called program is not also called from generated code that runs
outside of the CICS region).
In this case, the following properties are meaningful for a callLink element
in which pgmName identifies the called program:
- alias
- linkType
- parmForm
- pgmName
- pgmType
- refreshScreen
- type
In the above case, you do not need to specify a callLink element
for the called program if the alias property has been set for the
program, you want the call to be implemented as an EXEC CICS LINK command, and the called program expects
pointers in the CICS COMMAREA. If
the calling program and the called program are both generated CICS COBOL programs, and the type property
is set to localCall, the values for the linkType and parmForm properties
must be the same when you generate both programs. The easiest way
to accomplish this is to use the same linkage options part when you
generate both the calling program and the called program. The value
of type cannot be localCall when you are
generating a Java wrapper.