Data Definition Language (DDL) Reference Manual

DDL Compiler Commands
Data Definition Language (DDL) Reference Manual529431-004
9-38
C_DECIMAL
!?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
!OUTPUT *.
Loading Definition EMP
#pragma section emp
/* Definition EMP created on 03/06/2000 at 17:13 */
#pragma fieldalign shared2 __emp
typedef struct __emp
{
char item1[5];
char item2[6];
} emp_def;
C output produced for EMP.
!?C_DECIMAL
!OUTPUT *.
Loading Definition EMP
#pragma section emp
/* Definition EMP created on 03/06/2000 at 17:13 */
#pragma fieldalign shared2 __emp
typedef struct __emp
{
decimal item1[5];
decimal item2[6];
} emp_def;
C output produced for EMP.
Example 9-18. C_DECIMAL and NOC_DECIMAL Commands (page 2 of 3)