HP 3000 Manuals

Ap A. HP COBOL II/XL Compiler Commands [ HP COBOL II/XL Quick Reference Guide ] MPE/iX 5.0 Documentation


HP COBOL II/XL Quick Reference Guide

Appendix A  HP COBOL II/XL Compiler Commands 

Command Files 

These are the MPX XL command files you can use to compile, link, and
execute HP COBOL II/XL programs.  The syntax follows.

          Table A-1.  Command Files 

--------------------------------------------------------------------------------------------
|              |                                                                           |
|   Command    |                                Description                                |
|              |                                                                           |
--------------------------------------------------------------------------------------------
|              |                                                                           |
| COB85XL      | Invokes the COBOL compiler using the 1985 ANSI standard entry point and   |
|              | creates an object file.                                                   |
|              |                                                                           |
--------------------------------------------------------------------------------------------
|              |                                                                           |
| COB85XLK     | Invokes the COBOL compiler using the 1985 ANSI standard entry point,      |
|              | links the object file, and creates a program file.                        |
|              |                                                                           |
--------------------------------------------------------------------------------------------
|              |                                                                           |
| COB85XLG     | Invokes the COBOL compiler using the 1985 ANSI standard entry point, and  |
|              | creates and runs a program file in $NEWPASS.                              |
|              |                                                                           |
--------------------------------------------------------------------------------------------
|              |                                                                           |
| COB74XL      | Invokes the COBOL compiler using the 1974 ANSI standard entry point and   |
|              | creates an object file.                                                   |
|              |                                                                           |
--------------------------------------------------------------------------------------------
|              |                                                                           |
| COB74XLK     | Invokes the COBOL compiler using the 1974 ANSI standard entry point,      |
|              | links the object file, and creates a program file.                        |
|              |                                                                           |
--------------------------------------------------------------------------------------------
|              |                                                                           |
| COB74XLG     | Invokes the COBOL compiler using the 1974 ANSI standard entry point, and  |
|              | creates and runs a program file in $NEWPASS.                              |
|              |                                                                           |
--------------------------------------------------------------------------------------------

[REV BEG]

Syntax 

     COB85XL [textfile][,[objectfile][,[listfile][,[masterfile] [,newfile]]]]
             [;INFO="info"][;WKSP=workspacename] [;XDB=xdbfile]

     COB85XLK [textfile][,[progfile][,[listfile][,[masterfile] [,newfile]]]]
              [;INFO="info"][;WKSP=workspacename] [;XDB=xdbfile]

     COB85XLG [textfile][,[listfile][,[masterfile][,newfile]]]
              [;INFO="info"][;WKSP=workspacename] [;XDB=xdbfile]

     COB74XL [textfile][,[objectfile][,[listfile][,[masterfile] [,newfile]]]]
             [;INFO="info"][;WKSP=workspacename] [;XDB=xdbfile]

     COB74XLK [textfile][,[progfile][,[listfile][,[masterfile] [,newfile]]]]
              [;INFO="info"][;WKSP=workspacename] [;XDB=xdbfile]

     COB74XLG [textfile][,[listfile][,[masterfile][,newfile]]]
              [;INFO="info"][;WKSP=workspacename] [;XDB=xdbfile]
[REV END]

Parameters 

textfile         MPE or TSAM file containing your source program.  This
                 file can be compiled.  The default is $STDIN. 

objectfile       Relocatable object code file.  This file can be linked.
                 The default is $NEWPASS or $OLDPASS. The object file
                 code can be NMOBJ or NMRL. The compiler will take the
                 appropriate actions for existing files.

progfile         Executable program file.  This file can be executed.
                 The default is $NEWPASS.

listfile         File on which your source code will be listed.  The
                 default is $STDLIST.

masterfile       MPE or TSAM file to be merged with textfile to produce a
                 composite source program.  If masterfile is omitted, the
                 entire source is from textfile.

newfile          MPE file into which the merged textfile and masterfile 
                 is written.  For details, refer to the HP COBOL II/XL 
                 Reference Manual.  If newfile is omitted, no new file is
                 written.

info             A string whose value is a command list of the form:

                      "$compiler_command[$compiler_command]..."

                 where no compiler_command contains the character $.

                 If the number of commands is long enough, you can use an
                 ampersand (&) to continue the info string.  The length
                 limit for a compiler command is the same as the length
                 limit for a source program line.

                 In the listing file, the string "INFO=" appears where
                 the sequence numbers normally appear.

workspacename    Work space in which HP TOOLSET/XL can manage versions of
                 the source program.[REV BEG]

xdbfile          MPE XL file into which a listing of the source code is
                 written.  xdbfile is used to view the source code in the
                 HP Symbolic Debugger/XL.[REV END]



MPE/iX 5.0 Documentation