ContentsIndexPreviousNext

CONDITION-CODE phrase on CALL statement

CONDITION-CODE is an HP e3000 COBOL special register that holds the return values of external routines called from within the COBOL program. CONDITION-CODE uses the same register as RETURN-CODE in ACUCOBOL-GT default mode (see Appendix C, "Interfacing to C Subroutines," section C.2).

When you call C routines, you pass parameters directly to the C function according to the CALL statement that invokes the function. When a C function is called, its return value is placed in the special register CONDITION-CODE.

CONDITION-CODE must be referred to by its mnemonic-name. You should specify a mnemonic-name for it in the Special-Names paragraph (see Book 3, Reference Guide, section 4.2.3, "Special-Names Paragraph").