HPlogo KSAM/3000 Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 5 USING KSAM FILES IN FORTRAN PROGRAMS

CALLING COBOL PROCEDURES

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

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 
Feedback to webmaster