SQL Supplement for H-Series RVUs
SQL/MP Programming Manual for COBOL
HP NonStop SQL Supplement for H-Series RVUs—529446-005
1-31
Running the HP COBOL Compilers
the SQL Compiler Directive on page 1-14. The -Wsql flag also invokes the
-Wsqlcomp flag if you do not specify it on the command line.
°
The -Wsqlcomp flag directs the ecobol utility to invoke the SQL/MP compiler
(SQLCOMP) after the linking step, passing the specified arguments to the
SQL/MP compiler. In this case, a catalog, $vol.subvol, is passed to the
SQL/MP compiler.
°
The -o flag directs the ecobol utility to use the specified path name instead of
default a.out for the executable file produced.
•
By default, the ecobol utility automatically invokes the eld utility to link object
files into a PIC loadfile. To suppress the invocation of the eld utility, use the -c or
-Wnolink flag on the ecobol command line:
°
In this example, the -c flag directs the ecobol utility to compile the specified
source file, mysrc.cob, but not to link it or remove the object file, mysrc.o,
that is created in the current directory:
ecobol -c mysrc.cob
°
This command invokes the SQL/MP compiler to SQL compile the program file,
myprog, without invoking the eld utility:
ecobol -Wnolink -Wsql myprog
•
To invoke the eld utility to link object files into a PIC program file and then invoke
the SQL/MP compiler to SQL compile the program file, use this command:
ecobol -o myprog -Wsql x.o y.o z.o
The -Weld or -Weld_obey flag directs the ecobol utility to pass arguments to
the eld utility. For more information, see the eld Manual.
Note. Do not use the -Wsql and -s flags in the same invocation of the ecobol
utility. The -s option strips symbols information from the object file. The SQL compiler
requires the symbols region to be present for SQL compilation to succeed.
Note. Run the linker before SQL compiling the program.










