Oracle7 Administrator's Reference for UNIX

Contents Index Home Previous Next

Pro*FORTRAN

Using Pro*FORTRAN

The $ORACLE_HOME/precomp/demo/profor directory contains the sample1.pfo sample FORTRAN program. Before running this program, use the demobld.sql file to build a demonstration database, as described in Chapter 7, "SQL*Plus".

To run the profor utility on the sample FORTRAN program, enter:

$ make -f profor.mk sample1

To execute the sample FORTRAN program, enter:

$ sample1

You can now enter additional employees in the demonstration database.

You can build Pro*FORTRAN programs with profor.mk. For example, to precompile, compile, and link the userprog.pfo program, enter:

$ make -f profor.mk userprog

Note: If your program depends on non-Oracle libraries, you may have to alter profor.mk to include them.

The FORMAT precompiler option specifies the format of input lines for FORTRAN. If you specify FORMAT=ANSI, columns 1 to 6 contain an optional sequence number, column 7 indicates comments or continuation lines, paragraph names begin in columns 8 to 11, and statements begin in columns 12 to 72.

If you specify FORMAT=TERMINAL, columns 1 to 6 are dropped, making column 7 the leftmost column.

Pro*FORTRAN user exits are not supported on all platforms. Refer to the Oracle7 Installation Guide for your platform and README.doc file for supported user exits. If Pro*FORTRAN user exits are supported, you can use the proforxt.mk makefile to create a Pro*FORTRAN user exit.


Contents Index Home Previous Next