HPlogo ALLBASE/SQL COBOL Application Programming Guide: HP 3000 MPE/iX Computer Systems > Chapter 1 Getting Started with ALLBASE/SQL Programming in COBOL

The Compiler and the Linker

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Figure 1-3 summarizes the steps in creating an executable ALLBASE/SQL COBOL program from the files created by the COBOL preprocessor.

Figure 1-3 Compile-Time and Link-Time Events

[Compile-Time and Link-Time Events]

You must use native mode to compile and link your program. You submit to the COBOL compiler a modified source code file and related include files created by the preprocessor. The compiler generates an object code module. To convert one or more object code modules into an executable program, you link them by invoking the linker. This step, known as program preparation, creates an executable program file. Refer to Chapter 2 for more information on compiling and linking.

In the next example, an executable program named SomeProg is created after a module named Pgmr1@ACCTDB.SomeMod is stored by the COBOL preprocessor in a DBEnvironment named SomeDBE.GROUPDB.ACCTDB. The program is in the GROUPC group.



   :HELLO PGMR1.ACCTDB,GROUPC

    .

    .

   :RUN PSQLCOB.PUB.SYS; INFO = 'SomeDBE.GROUPDB

   (MODULE(SOMEMOD))'

    .

    .

   :COB85XL ModifiedSourceCodeFile,,$NULL

   :LINK ; TO=SOMEPROG