Figure 1-3 “Compile-Time and Link-Time Events” summarizes the steps in creating an executable
ALLBASE/SQL FORTRAN program from the files created by the
FORTRAN preprocessor.
Figure 1-3 Compile-Time and Link-Time Events
You must use native mode to compile and link your program.
You submit to the FORTRAN compiler a modified source code file
and the related include file(s) created by the preprocessor.
The compiler then generates an object code file.
To convert one or more object code files into an executable
program, you link them by invoking the linker. This step
creates an executable program file. Refer to the Chapter "Using
the ALLBASE/SQL FORTRAN Preprocessor" for more information on
compiling and linking.
The following example illustrates the preprocessor storing a
module in a DBEnvironment located in a group other than that in
which preprocessing was initiated. An executable program named
SOMEPROG is created in the GROUP1 group after a module named
SOMEMOD is stored by the FORTRAN preprocessor in a DBEnvironment
named SOMEDBE.GROUP2.ACCTDB. Note that PGMR1 must have
appropriate ALLBASE/SQL and operating system file authorities as
well.
:HELLO PGMR1.ACCTDB.GROUP1
.
.
.
:RUN PSQLFOR.PUB.SYS; INFO = 'SOMEDBE.GROUP2 (MODULE(SOMEMOD))'
.
.
.
:CCXLLK ModifiedSourceFile,SOMEPROG,$NULL
|