Host Connection Program Guide and Reference
4-8
CALL “COBLIM” USING FUNC STR DLEN RETC.
The parameter types are defined as:
01 FUNC PIC S9(4) COMP.
01 DLEN PIC S9(4) COMP.
01 RETC PIC S9(4) COMP.
01 STR.
03 FILLER PIC X(256).
For applications migrating from an Bull OS/2 environment, the parameters are defined as:
01 FUNC PIC 9(4) COMP–0.
01 DLEN PIC 9(4) COMP–0.
01 RETC PIC 9(4) COMP–0.
01 STR. 03 FILLER PIC X(256).
Compiling and Linking
To compile the COBOL source program test.cob into an executable, use this command
with the following order:
cob –x test.cob –lhllapi –lg3270 –liconv –lcur –lodm –lfxfer –o
’test’
HLLAPI Guidelines for FORTRAN Programs
The following guidelines are helpful in preparing applications that use HLLAPI functions in
FORTRAN language.
Source Code Preparation
There are no required statements for the FORTRAN language that call HLLAPI function.
However, the FORTRAN applications can create their own include files according to the
definition provided by the hapi_ c.h file.
HLLAPI Functional Call Syntax
The syntax for calls to HLLAPI functions in the FORTRAN language is:
hllc(FUNC, %REF(CHAR_ARG), LEN, RET)
The parameter types are defined as:
INTEGER*4 FUNC, LEN, RET CHARACTER*256 CHAR_ARG
Compiling and Linking
To compile a FORTRAN source program test.f into an executable, use this command with
the following order:
xlf test.f –lhllapi –lg3270 –liconv –lcur –lodm –lfxfer –o test
This compilation will include all the needed libraries in the final executable.
Comentarios a estos manuales