HP 3000 Manuals

COMPILE [ HPTOOLSET XL Reference Manual ] MPE/iX 5.0 Documentation


HPTOOLSET XL Reference Manual

COMPILE 

Causes TOOLSET/XL to call the appropriate compiler for your COBOL or
Pascal source file.

Syntax 

     COM[PILE] [sourcefile[version designator] [objfile]
            [, sourcefile[version designator] [objfile]]...]

Parameters 

Source File      The text file from which source records are initially
                 read.  The source file(s) must be in TSAM format.  If
                 more than one source file is listed, each will compile
                 separately in the order in which they occur.

Version          Specifies the version of your file you want to compile.
Designator       It takes the form:

                 #n - where n is an integer, L[ATEST], or R[EFERENCE].

                 If no version is specified and you own the file, the
                 Latest version is used.  The Reference version is used
                 if you share the file.

Objfile          Allows you to designate the object file into which the
                 source file will be compiled.  The default for both
                 owned and used files is your current Workspace object
                 file.  If your source file is neither owned nor used,
                 the default object file is $NEWPASS.

Description 

When you enter the COMPILE command, it causes TOOLSET/XL to activate the
compiler.  The compiler compiles your source file into an object file.
If you enter the COMPILE command without any parameters, you will be
prompted for the name of the file you want to compile.

MPE XL compile commands such as :COBOL and :PASCAL cannot be entered from
TOOLSET/XL. You can execute a compile using the :RUN command and file
equations.  For example:

     :FILE COBTEXT=sourcefile 
     :RUN COBOL.PUB.SYS;PARM=1

     :FILE PASTEXT=sourcefile 
     :RUN PASCAL.PUB.SYS;PARM=1

COBTEXT is the COBOL formal file designator and PASTEXT is the Pascal
formal file designator.  If you compile in this way, errors and listings
will not be saved.  This method of compilation is the same as exiting
TOOLSET/XL and activating the compiler directly.

You cannot use the :COB85XLK, :COB85XLG, :PASXLLK, and PASXLGO commands
in TOOLSET/XL.

Example 

     >>COMPILE

     -->Name of the file to be compiled?  ZPASPROJ

     -->Compiling source file ZPASPROJ.CAROLYN.TOOLS#L


MPE/iX 5.0 Documentation