DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9 -114
VALUES Command
VALUES Command Guidelines
The following points are guidelines for using the VALUES command:
•
The VALUES command does not affect VALUE clauses associated with level 88
items or with CONSTANT, TOKEN-CODE, TOKEN-MAP, or TOKEN-TYPE
statements.
•
When the VALUES command is specified and DDL is generating source code for
FORTRAN, the compiler translates any initial values into comments.
•
The VALUES command is useful for definitions used in the Linkage sections of
COBOL or SCREEN COBOL, where COBOL initial values are not allowed.
VALUES Command Example
The following example suppresses initial values for the definition NEW-NAME:
These fields are stored in COBSRC as:
?SECTION NEW-NUMB,TANDEM
01 NEW-NUMB PIC 9(12)
VALUE ZEROS.
?SECTION NEW-NAME,TANDEM
01 NEW-NAME PIC X(18).
?NOTIMESTAMP
?COBOL cobsrc
DEF new-numb PIC 9(12)
VALUE IS ZEROS.
?NOVALUES
DEF new-name PIC X(18)
VALUE IS "JONES".
?VALUES
Suppress timestamp comments
By default, include initial
values in COBSRC
Suppress initial values
Include initial values again
VST932.vsd