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

OVERVIEW

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

The FORTRAN language has no input/output statements that can be used to access or create a KSAM file directly. In order to reference KSAM files for input or output, the FORTRAN progammer can choose between using MPE file system intrinsics (as described in section IV) or using COBOL procedures (described in section III). He can create a KSAM file with the KSAMUTIL utility program (described in section II) or with a call to the FOPEN intrinsic, but not with a COBOL procedure.

If you are programming in FORTRAN, you can use the CALL statement to call any of the COBOL procedures or any of the file system intrinsics that access KSAM files. In order to determine which to use, you should refer to Table 3-1 “KSAM Procedures for COBOL Interface” for a list of the COBOL procedures that provide KSAM interface and to Table 4-1 “KSAM File System Intrinsics” for a similar list of the file system intrinsics used for KSAM interface. You will note that there are differences in the functions provided.

Since the COBOL procedures are described in detail in section III and the file system intrinsics are described in detail in section IV, these descriptions are not repeated here. This section merely describes how to call the COBOL procedures or the file system intrinsics, and provides examples of file creation and access along with brief commentaries.

Feedback to webmaster