The
library property of the
callLink element
of the linkage options part specifies the DLL or library that contains
the called program when the value of the
type property
is
ejbCall or remoteCall:
- If your program is calling a remote COBOL program on iSeries®, the library property
refers to the iSeries library
that contains the program to be called. If the value of remoteComType is
JAVA400J2C, specify a value in the following form:
currentLibrary:libraryList
- currentLibrary
- The current library; as used to set the library on the host job.
For example, *USRPRF.or *CRTDFT.
- libraryList
- A list of libraries, such that each entry is a library name followed
by a position value that defaults to * LAST (ensuring that the entry
is placed after any entries that have the alternative position value,
which is *FIRST).
Here is an example value for
library:
*USRPRF:MYMQLIB,MYFILLIB,MYDBLIB *FIRST
- If your EGL-generated Java™ program
is calling a remote, non-EGL-generated program on iSeries (for example, a C or C++ service
program), the called program belongs to an iSeries library and the library property
refers to the name of the program that contains the entry point to
be called. Set the other callLink element
properties as follows:
- Set the pgmName property to the name
of the entry point.
- Set the remoteComType property to DIRECT
or DISTINCT.
- Set the remotePgmType property to EXTERNALLYDEFINED.
- Set the location property to the name
of the iSeries library.
- Otherwise, if the calling program is an EGL-generated Java program, the library property
refers to the name of a DLL that contains an entry point to be called
locally as a native program. The entry point is identified by the pgmName property;
but you need to specify the library property
only if the names of the entry point and DLL are different.
Do
not include a file name extension when you specify a value for the library property.
For example, if the library name is libxyz.so, assign only
libxyz to the property.
The
library property affects the generation
of the calling program. For information on how to call a native DLL,
see the topic "If callLink type is remoteCall" in the list of related
topics.