ContentsIndexPreviousNext

CONVERT phrase on ACCEPT statement

HP COBOL programs allow numeric or numeric edited receiving fields on the ACCEPT statement by default.

With ACUCOBOL-GT in HP e3000 compatibility mode, the CONVERT phrase is implied on numeric ACCEPT statement. When the " -Cp" option is specified, the compiler sets the variable AUTO_CONVERT to "TRUE".

ACUCOBOL-GT, in the default mode, requires that you use the CONVERT phrase on the ACCEPT statement, or use the "-Vc" compiler option that sets the variable AUTO_CONVERT to "TRUE".

See ACCEPT statement, Format 1, Syntax Rule 1, in section 6.6 of Book 3, Reference Guide, for details.