Code table values specify encoded and decoded values:
For example, the following sample encoded values are valid in terms of their corresponding internal pictures:
Encoded value |
External picture |
Definition |
---|---|---|
OS |
XX |
department value |
01 |
9(2) |
state value |
For example, the following sample decoded values are valid in terms of their corresponding external pictures:
Encoded value |
Internal picture |
Definition |
---|---|---|
OFFICE SERVICES |
X(20) |
department value |
ALABAMA |
X(20) |
state value |
On mapin, the edit table (if any) is invoked before the code table (if any) for a field.
DDDL Compiler Options
DDDL compiler conventions apply when specifying values for edit and code tables:
01 SHIPPING 02 PERSONNEL 03 ACCOUNTING 04 MARKETING 05 'OFFICE SERVICES'
Single quotes around the value OFFICE SERVICES indicate that the space character between the two words in the value is part of the value rather than a delimiter between two values.
50 DENVER 60 'BOSTON RGNL OFFICE' 70 'CHICAGO RGNL OFFICE' 85 'USER''S SITE
Note: For more information about DDDL compiler conventionsand specifying values for tables, see the CA IDMS IDD DDDL Reference Guide.
Special Values
The following special values can be included in code tables to facilitate use of the tables at runtime:
NOT FOUND must not be enclosed in quotation marks when used as a keyword. For example, the following sample code table for a DEPARTMENT field includes NOT FOUND as an encoded and a decoded value:
01 SHIPPING 02 PERSONNEL 03 ACCOUNTING 04 MARKETING 05 'OFFICE SERVICES' 00 NOT FOUND NOT FOUND MISSING
The value 00 is stored for the field when an operator supplies a value that is not included as a decoded value in this sample table. The word MISSING is displayed when a value other than 01, 02, 03, 04, 05, or 00 is stored for the field.
Note: For more detailed information about the NOT FOUND keyword, see the appendix “Generating Edit and Code Tables".
The following sample code table for a DEPARTMENT field included the null value as a decoded value:
00 '' 01 SHIPPING 02 PERSONNEL 03 ACCOUNTING 04 MARKETING 05 'OFFICE SERVICES'
The decoded value 00 is stored for this example when the operator presses ERASE EOF at the beginning of the associated alphanumeric map field and submits a null value for the field.
Copyright © 2013 CA.
All rights reserved.
|
|