|
xpli - PL/I compiler script |
|
|
The compiling of an xframe-targeted PL/I source (TP or batch) follows normally the same steps like on the original mainframe environment, in dependence with the program's typology and language. It comprehends :
In order to give an user-friendly interface to all compiling processes, the “xpli” script is supplied. Note: xpli is not available on Windows systems. Synopsis xpli [options] <source> Use xpli is used to compile both TP and batch PL/I programs. The filename specified as source has to be suffixed with “.pre”, and all files generated have the base name of the source. Options
xpli produces the following files: <sourcename>.errors List of errors caught during (pre)compiling phases <sourcename>.lst List file if required (-L) Return codes A return code of 0 (zero) is returned if compiling succeeded. Non zero if something went wrong. Configuration xpli may be configured both using environment variables and a configuration file. The environment Some environment variables should be previously set to let xpli work properly:
The configuration file The environment variable listed above may be contained in a file named xpli.conf which is loaded at xpli startup. In this phase, xpli looks for the its configuration in present working directory and then in $HOME/etc. An alternative file may be specified setting the XPLICONF environment with the full path to the desired configuration file. Example configuration file # Example # xpli -d PL02.plx The compiling was successful and a shared library has been generated and located in the correct path. Notes Compiling xpli generates only shared libraries and link-editable objects. To built an executable file, you must use the OpenPLI linker(ldpl1). This means that, while shared libraries produced by xpli are immediately available to be used by XCICS/TS, for batch programs you must link executable files using the linker, remembering to provide all the objects that compose the program. Additionally, if you want to access XVSAM data, though the OpenPLI ISAM interface you must invoke ldpl1 with option -cisam and export the following environment variable before to invoke the linker: export LIB_ISAM=$(XFRAMEHOME)/xvsam6/isam/libisam.a Example export LIB_ISAM=$(XFRAMEHOME)/xvsam6/isam/libisam.a Notes
|