Skip to main content
Dominique Sacre
Rocketeer
Feb 15, 2013 10:30 PM UTC

How can I have reserved words used by IBM COBOL MVS treated as reserved words?

Problem:

Compiling a COBOL program that is running on IBM COBOL MVS and the reserved words are not being treated as reserved words by the checker.

Resolution:

When compiling your COBOL program use the directive "MVS".  This will turn-on the IBM COBOL for MVS reserve word list.

The syntax:

>>-.---.-.----.--MVS-------------------><  

     -/- -NO-

Parameters:

None

Properties:

Default: NOMVS(Dialect )

Phase: Syntax check

$SET: Initial

Dependencies:

The MVS directive sets DBSPACE and DBCS"3" immediately.

Old KB# 2074