Definition Attributes
Data Definition Language (DDL) Reference Manual — 426798-002
6- 95
89 Enumeration Clause
TACL Output. The following shows how DDL translates definitions and descriptions of
enumeration clauses into TACL source code:
DDL Type
TACL Type
DEF status TYPE ENUM BEGIN.
89 no-error.
89 read-error.
89 write-error VALUE 6.
END.
?Section NO^ERROR Text
0
?Section READ^ERROR Text
1
?Section WRITE^ERROR Text
6
?Section STATUS STRUCT
Begin
ENUM STATUS;
End;
DEF old-status TYPE status
VALUE no-error.
DEF cpu.
2 state TYPE ENUM.
89 stop.
89 pause.
89 running.
END.
?Section OLD^STATUS Struct
Begin
ENUM OLD^STATUS;
End;
?Section STOP Text
0
?Section PAUSE Text
1
?Section RUNNING Text
2
?Section CPU Struct
Begin
ENUM STATE;
End;
DEF system-state.
2 cpu0 TYPE cpu.
2 cpu1 TYPE cpu.
END.
?Section SYSTEM^STATE Struct
Begin
STRUCT CPU0;
Begin
ENUM STATE;
End;
STRUCT CPU1;
Begin
ENUM STATE;
End;
End;