DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9- 36
C_DECIMAL Command
NOC_DECIMAL
directs the DDL compiler to generate C output as type
char
for simple numeric
items. The NOC_DECIMAL compiler command is used to nullify the effects of the
C_DECIMAL compiler command if that command is already in effect.
The NOC_DECIMAL command is the default form of the command.
C_DECIMAL Command Guidelines
The following points are guidelines for using the C_DECIMAL command:
•
The C_DECIMAL command is used to produce decimal values in C output for
simple numeric fields.
•
For computational numeric fields, DDL ignores the effect of the C_DECIMAL
compiler command.
C_DECIMAL Command Example
The following example shows the use of the ?C_DECIMAL and ?NOC_DECIMAL
commands:
12> DICT
!DEF EMP.
!02 ITEM1 PIC 9(5).
!02 ITEM2 PIC 9(6).
!END.
!?C
!OUTPUT *.
!?C_DECIMAL
!OUTPUT *.
!?NOC_DECIMAL
!OUTPUT *.
!DEF EMP1.
!02 ITEM1 PIC 9(5).
!02 ITEM2 PIC 9(5) COMP.
!END.
!?C_DECIMAL
!OUTPUT DEF EMP1.
!?DICT
Audited dictionary created on subvol $ADE101.BUG.
Dictionary opened on subvol $ADE101.BUG for update access.
!DEF EMP.
!02 ITEM1 PIC 9(5).
!02 ITEM2 PIC 9(6).
!END.
Definition EMP size is 11 bytes.
Definition EMP added to dictionary.
!?C
/* SCHEMA PRODUCED DATE - TIME : 3/06/2000 17:14:32 */
Output source for C is opened on $ZTN0.#PTS3ZAW