HP 3000 Manuals

CALLING COBOL PROCEDURES [ KSAM/3000 Reference Manual ] MPE/iX 5.0 Documentation


KSAM/3000 Reference Manual

CALLING COBOL PROCEDURES 

Like the FORTRAN/3000 procedures, COBOL/3000 procedures do not allow you
to omit any parameters from the parameter list or to pass parameters by
value.  Thus no special provisions need be made in order to call COBOL
procedures from a FORTRAN program.  Since the COBOL procedure call
differs in format from the FORTRAN procedure call, you must translate
from the COBOL format when calling a COBOL procedure in a FORTRAN
program.  The translation is simple:

     CALL "CKOPEN" USING filetable, status. <----- COBOL format
            |             |   |----|
            |             |   |
         procedure    parameters
           name       |      |
            |         |      |
            |         |      |
     CALL CKOPEN (filetable, status) <----- FORTRAN format



MPE/iX 5.0 Documentation