MPE/iX Commands Reference Manual (32650-90877)
118 Chapter4
Command List II
Commands CALC thru COPY
Program development in native mode uses the MPE/iX LINK command, not the MPE V/E
PREP command. This produces a significant change in the method of compiling code. For
example, if you have created a program called MAIN and a subprogram called SUB, each
contained in a separate file, you might choose to append the code from SUB to SOMEUSL in
MPE V/E, like this:
COBOLII MAIN, SOMEUSL
COBOLII SUB, SOMEUSL
PREP SOMEUSL, SOMEPROG
RUN SOMEPROG
However, the LINK command (in MPE/iX native mode) does not append SUB. On MPE/iX,
you must compile the source files into separate object files and then use the Link Editor to
link the two object files into the program file, as in this example:
COB74XL MAIN, OBJMAIN
COB74XL SUB, OBJSUB
LINK FROM=OBJMAIN,OBJSUB;TO=SOMEPROG
RUN SOMEPROG
On the other hand, if an NMRL is used instead of an NMOBJ, the above can be simplified to
the following:
BUILD RLFILE;DISC=10000;CODE=NMRL
COB74XL MAIN, RLFILE
COB74XL SUB, RLFILE
LINK RLFILE,SOMEPROG
RUN SOMEPROG
Related Information
Commands COB74XLG, COB74XLK, LINK, RUN, XEQ, LINKEDIT Utility
Manuals HP COBOL II/XL Reference Manual
HP COBOL II/XL Programmer's Guide
HP Link Editor/iX Reference Manual
COB74XLG
Compiles, links, and executes an HP COBOL II/iX program using the ANSI 1974 standard
entry point. HP COBOL II/iX is not part of the HP 3000 Series 900 Computer System
Fundamental Operating Software and must be purchased separately. This command is
recognized only if HP COBOL II/iX is installed on your system. (Native Mode)
Syntax
COB85XLG[
textfile
]
[ ,[
listfile
] [ ,[
masterfile
] [ ,
newfile
] ] ] ]
[ ;INFO=
quotedstring
] [ ;WKSP=
workspacename
]
[ ;XDB=
xdbfilename
]