EGL Reference Guide for iSeries
The linkage options part is composed of a set of elements, each of which
has a set of properties and values. The following types of elements are
available:
- A callLink element specifies the linkage conventions that EGL
uses for a given call.
If you are generating a COBOL program, the following relationships are in
effect:
- If the callLink element refers to the generated program, that element
determines aspects of the program's own parameters; for example,
whether the program expects pointers to data or expects the data
itself. Also, that element helps determine whether to generate a Java
wrapper that allows access to the COBOL code from native Java code; for
an overview, see Java wrapper.
- If the callLink element refers to a program being called by the generated
program, that element specifies how the call is implemented; for example,
whether the call is local or remote.
If you are generating Java code, the callLink element always applies to a
called program. The following relationships are in effect:
- If the callLink element refers to the program that you are generating,
that element helps determine whether to generate a Java wrapper that allows
access to the program from native Java code; for an overview, see
Java wrapper. If you indicate that the Java wrapper accesses
the program by way of an EJB session bean, the callLink element also causes
generation of an EJB session bean.
- If you are generating a Java program and if the callLink element refers to
a program that is called by that program, the callLink element specifies how
the call is implemented; for example, whether the call is local or
remote. If you indicate that the calling Java program makes the call
through an EJB session bean, the callLink element causes generation of an EJB
session bean.
- An asynchLink element specifies how a generated Java or COBOL
program transfers asynchronously to another program, as occurs when the
transferring program invokes the system function
sysLib.startTransaction.
- A transferToProgram element specifies how a generated COBOL
program transfers control to a program and ends processing. This
element is not used for Java output and is meaningful only for a main program
that issues a transfer statement of the type transfer to
program.
- A transferToTransaction element specifies how a generated
program transfers control to a transaction and ends processing. This
element is meaningful only for a main program that issues a transfer
statement of the type transfer to transaction. The element
is unnecessary, however, when the target program is generated with VisualAge
Generator or (in the absence of an alias) with EGL.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.