HP (Hewlett-Packard) HP 3000 Laptop User Manual


 
Chapter 3 165
Command Definitions C-E
COBOLIIPREP
INFO=quotedstring is used in the COBOLII programming language to pass
compiler options to a program. These options appear before the first line of
source code in the text file.
workspacename This parameter is the actual file designator of an HPToolset workspace
used with HPToolset. The formal file designator created by the compiler is
COBWKSP.
Operation Notes
The COBOLIIPREP command compiles and prepares a compatibility mode COBOLII
program into a program file on disk. If you do not specify textfile, COBOLII expects your
input from your standard input device. If you do not specify listfile, COBOLII sends the
listing output to your current list device.
The USL file created during compilation is a system-defined temporary file, $OLDPASS,
which is passed directly to the MPE segmenter. The segmenter overwrites the USL file and
writes the prepared program to $OLDPASS, if progfile is omitted, which can then be
executed.
You cannot backreference the formal file designators used in this command (COBTEXT,
COBLIST, COBMAST, COBNEW, and COBWKSP) as actual file designators in the command
parameter list. For further information, refer to the "Implicit FILE Commands for
Subsystems" discussion of the FILE command.
Use
This command may be issued from a session, job, or program. It is not available in BREAK.
Pressing
Break suspends the execution of this command. Entering the RESUME command
continues the execution.
Examples
To compile and prepare a COBOLII program entered from your standard input device
($STDIN), with the listing printed on the standard list device ($STDLIST), enter:
COBOLIIPREP
To compile and prepare a COBOLII source program input from the text file SFILE into a
program file named MYPROG, with the listing sent to the current list device, enter:
COBOLIIPREP SFILE,MYPROG
Related Information
Commands COBOLII, COBOLIIGO
Manuals HP COBOL II Reference Manual (31500-90001)