COBOLIIGO



COBOLIIGO

     Compiles, prepares, and executes a Compatibility Mode
COBOLII program on the COBOL 74 compiler. COBOLII is not
part of the 900 Series HP 3000 computer system fundamental
operating software and must be purchased separately. The
Native Mode equivalent of this command is COB74XLG.

For information on the 85 entry point, refer to the HP COBOL II/XL
Reference Manual (31500-90001)

SYNTAX

     COBOLIIGO [TEXTFILE][,[LISTFILE][,[MASTERFILE][,[NEWFILE]]]]
[;INFO=QUOTEDSTRING]
[;WKSP=WORKSPACENAME]

PARAMETERS

TEXTFILE            ACTUAL FILE DESIGNATOR OF THE INPUT FILE FROM WHICH
THE SOURCE PROGRAM IS READ. THIS CAN BE ANY ASCII
INPUT FILE. FORMAL FILE DESIGNATOR IS COBTEXT.
DEFAULT IS $STDIN.

LISTFILE ACTUAL FILE DESIGNATOR OF THE FILE ON WHICH THE
PROGRAM LISTING IS WRITTEN. THIS CAN BE ANY ASCII
OUTPUT FILE. FORMAL FILE DESIGNATOR IS COBLIST.
DEFAULT IS $STDLIST.

MASTERFILE ACTUAL FILE DESIGNATOR OF THE MASTER FILE WHICH IS
MERGED AGAINST TEXTFILE TO PRODUCE A COMPOSITE
SOURCE. THIS CAN BE ANY ASCII INPUT FILE. FORMAL
FILE DESIGNATOR IS COBMAST. DEFAULT IS THAT THE
MASTER FILE IS NOT READ; INPUT IS READ FROM
TEXTFILE, OR FROM $STDIN IF TEXTFILE IS NOT SPECIFIED.

NEWFILE ACTUAL FILE DESIGNATOR OF THE MERGED TEXTFILE AND
THE MASTERFILE. THIS CAN BE ANY ASCII OUTPUT FILE.
FORMAL FILE DESIGNATOR IS COBNEW. DEFAULT IS THAT
NO FILE IS WRITTEN.

QUOTEDSTRING A SEQUENCE OF ASCII CHARACTERS BOUNDED BY A PAIR OF
SINGLE QUOTATION MARKS (APOSTROPHES) OR BY DOUBLE
QUOTATION MARKS. YOU MAY USE THE DELIMITING
CHARACTER AS PART OF THE STRING SO LONG AS IT
APPEARS TWICE. ANY OCCURRENCE OF TWO SINGLE QUOTES
IN A ROW, OR TWO DOUBLE QUOTES IN A ROW, IS
CONSIDERED PART OF THE STRING, AND, THEREFORE, NOT
THE TERMINATING DELIMITER.

INFO=QUOTEDSTRING IS USED IN THE COBOLII PROGRAMMING
LANGUAGE TO PASS COMPILER OPTIONS TO A PROGRAM.
THESE OPTIONS WILL APPEAR BEFORE THE FIRST LINE OF
SOURCE CODE IN THE TEXT FILE.

WORKSPACENAME THIS PARAMETER IS THE ACTUAL FILE DESIGNATOR OF AN
HPTOOLSET WORKSPACE. THE FORMAL FILE DESIGNATOR
CREATED BY THE COMPILER IS COBWKSP.

NOTE

THE FORMAL FILE DESIGNATORS USED IN THIS COMMAND (COBTEXT, COBLIST,
COBMAST, COBNEW, AND COBWKSP) CANNOT BE BACKREFERENCED AS ACTUAL FILE
DESIGNATORS IN THE COMMAND PARAMETER LIST. FOR FURTHER INFORMATION,
REFER TO THE "IMPLICIT FILE COMMANDS FOR SUBSYSTEMS" DISCUSSION OF THE
MPE/iX FILE COMMAND.

OPERATION

     THE COBOLIIGO COMMAND COMPILES, PREPARES, AND EXECUTES A
COMPATIBILITY MODE PROGRAM USING THE COBOL 74 COMPILER. IF
YOU DO NOT SPECIFY TEXTFILE, COBOLII EXPECTS THE SOURCE
PROGRAM TO BE ENTERED FROM YOUR STANDARD INPUT DEVICE. IF
YOU DO NOT SPECIFY LISTFILE, COBOLII SENDS THE OUTPUT TO
YOUR STANDARD 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 PURGES THE USL FILE AND WRITES
THE PREPARED PROGRAM TO $OLDPASS, IF PROGFILE IS OMITTED,
WHICH IS THEN EXECUTED AND MAY BE EXECUTED REPEATEDLY.

THIS COMMAND MAY BE ISSUED FROM A SESSION, JOB, OR PROGRAM. IT MAY NOT
BE USED IN BREAK. PRESSING [BREAK] SUSPENDS THE EXECUTION OF THIS
COMMAND. ENTERING RESUME CONTINUES THE EXECUTION.

EXAMPLE(S)

     TO COMPILE, PREPARE, AND EXECUTE A COMPATIBILITY MODE
COBOLII PROGRAM ENTERED FROM YOUR STANDARD INPUT DEVICE AND
SEND THE PROGRAM LISTING TO YOUR STANDARD LIST DEVICE, ENTER

COBOLIIGO

TO COMPILE, PREPARE AND EXECUTE A COBOLII PROGRAM FROM THE
DISK FILE TEXTFL AND SEND THE PROGRAM LISTING TO THE DISK
FILE LISTFL, ENTER

COBOLIIGO TEXTFL,LISTFL

Additional Discussion

COMMANDS: COBOLII, COBOLIIPREP MANUALS : HP COBOL II/XL REFERENCE MANUAL (31500-90001) MPE SEGMENTER REFERENCE MANUAL (32650-60026)