HP 3000 Manuals

IF Statement with Conditional Compilation [ COBOL/HP-UX Language Reference for the Series 700 and 800 ] MPE/iX 5.0 Documentation


COBOL/HP-UX Language Reference for the Series 700 and 800

IF Statement with Conditional Compilation 

General Formats 

Format 1 

[]
Format 2 $IF literal - 3 [NOT] DEFINED General Rules 1. The whole statement must appear on a single line. 2. literal-1, literal-2, or literal-3 can be either numeric or alphanumeric. 3. A format 2 $IF statement evaluates as true if its referenced constant is described as a 78 level item in the Working-Storage Section or by a previous CONSTANT Directive, regardless of its value. 4. If the condition is evaluated true the source lines following the $IF statement are processed. If the condition evaluates false, COBOL source lines are ignored until the next conditional compilation line is encountered. 5. A $IF can be nested within another $IF.


MPE/iX 5.0 Documentation