Field attribute combinations: Difference between revisions
No edit summary |
|||
Line 562: | Line 562: | ||
<p>In addition, some attributes <var class="term">require</var> other attributes. FLOAT, for example, requires a LENGTH specification. </p> | <p>In addition, some attributes <var class="term">require</var> other attributes. FLOAT, for example, requires a LENGTH specification. </p> | ||
<p>Field descriptions that contain invalid combinations are rejected. </p> | <p>Field descriptions that contain invalid combinations are rejected. </p> | ||
<p>The | <p>The Field Attribute Combinations chart is for Entry Order files. More stringent restrictions are placed on fields that are used as sort keys, hash keys, or record security fields. These restrictions are summarized in the discussion in the <var class="book">Rocket Model 204 Parameter and Command Reference</var>.</p> | ||
<p> </p> | <p> </p> | ||
[[Category:File manager]] | [[Category:File manager]] |
Revision as of 22:11, 12 June 2013
Combining attributes
When deciding on combinations of field attributes, use this chart to see if the combination you want to use is valid, See Key to table for combining attributes.
Attribute | KEY | ORD CHAR | ORD NUM | FRV | UNQ | NR | DEF | LVL | ONE | INV | STR | FLT | BIN | COD | FV | OCC | LEN | PAD | UPD | BLOB | CLOB |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
KEY | N | N | |||||||||||||||||||
ORD CHAR | N | N | N | N | N | ||||||||||||||||
ORD NUM | N | N | N | N | N | ||||||||||||||||
FRV | R | N | N | N | N | N | |||||||||||||||
UNIQUE (UNQ) | @ | @ | N | N | N | N | |||||||||||||||
NUM RANGE (NR) | N | N | =1 | N | N | ||||||||||||||||
DEFERRABLE (DEF) | @ | @ | @ | N | @ | N | N | ||||||||||||||
(LVL) | |||||||||||||||||||||
AT-MOST-ONE (ONE) | N | ||||||||||||||||||||
INVISIBLE (INV) | @ | @ | @ | @ | N | N | N | N | N | N | N | N | |||||||||
STRING (STR) | N | N | N | N | |||||||||||||||||
FLOAT (FLT) | N | N | N | N | N | F | R | N | N | N | |||||||||||
BINARY (BIN) | N | N | N | N | N | N | |||||||||||||||
CODED (COD) | F | F | N | N | N | ||||||||||||||||
FEW VALUED (FV) | @ | @ | N | N | |||||||||||||||||
OCCURS (OCC) | =1 | =1 | N | @ | @ | @ | |||||||||||||||
LENGTH (LEN) | N | @ | N | F | @ | N | N | ||||||||||||||
PAD | N | N | N | N | R | N | N | ||||||||||||||
UPDATE (UPD) | N | ||||||||||||||||||||
BINARY_LARGE_OBJECT (BLOB) | N | N | N | N | N | N | N | N | N | N | N | N | N | N | N | N | |||||
CHARACTER_LARGE_OBJECT (CLOB) | N | N | N | N | N | N | N | N | N | N | N | N | N | N | N | N |
Key to table for combining attributes
Code | Meaning |
---|---|
N | This attribute combination is not valid. |
R | This attribute combination is required. |
@ | One of these attributes is required. You can choose any one of the attributes marked, but you must choose at least one. |
=1 | The OCCURS clause is valid with this attribute only if defined as OCCURS=1. You cannot enter multiple field values for fields with these attributes. |
F | The FLOAT attribute requires the LEN attribute. Since the FLOAT attribute can also be used with the CODED attribute, this is the only circumstance that the LEN attribute is valid with CODED attribute. |
Some of the invalid combinations are direct conflicts, such as UNIQUE and DEFERRABLE; others describe meaningless situations or unusable fields, such as ORDERED CHARACTER and ORDERED NUMERIC.
In addition, some attributes require other attributes. FLOAT, for example, requires a LENGTH specification.
Field descriptions that contain invalid combinations are rejected.
The Field Attribute Combinations chart is for Entry Order files. More stringent restrictions are placed on fields that are used as sort keys, hash keys, or record security fields. These restrictions are summarized in the discussion in the Rocket Model 204 Parameter and Command Reference.