Tables created with prior versions of CA Datacom/DB may contain data types unrecognizable by SQL. For data to be retrieved from those tables, unrecognizable data types must be viewed as recognizable data types.
The chart on the following page shows the SQL-supported values for four CA Datacom Datadictionary FIELD attributes (TYPE, JUSTIFICATION, SIGN, and TYPE-NUMERIC), their meaning, and the equivalent SQL data type. When retrieving data from any column (field) that is defined in CA Datacom Datadictionary with a combination of attribute-values not included in this chart, CA Datacom/DB returns the data to an SQL application as if it were CHARACTER. That is, CA Datacom/DB presents the data without any translation or interpretation.
The CA Datacom Datadictionary FIELD Attributes have the following meanings:
Represents CA Datacom Datadictionary FIELD Attributes TYPE
Represents CA Datacom Datadictionary FIELD Attributes JUSTIFICATION
Represents CA Datacom Datadictionary FIELD Attributes SIGN
Represents CA Datacom Datadictionary FIELD Attributes TYPE-NUMERIC
CA Datacom Datadictionary Valid Entry: B
SQL Data Type: SMALLINT
CA Ideal Support: Supported
CA Datacom Datadictionary Valid Entry: B
SQL Data Type: INTEGER or INT
CA Ideal Support: Supported
CA Datacom Datadictionary Valid Entry: B
SQL Data Type: DATE
CA Ideal Support: Supported
CA Datacom Datadictionary Valid Entry: B
SQL Data Type: TIME
CA Ideal Support: Supported
CA Datacom Datadictionary Valid Entry: B
SQL Data Type: TIMESTAMP
CA Ideal Support: Supported
CA Datacom Datadictionary Valid Entry: C
SQL Data Type: CHARACTER or CHAR
CA Ideal Support: Supported
CA Datacom Datadictionary Valid Entry: C
SQL Data Type: CHARACTER with FOR MIXED DATA
CA Ideal Support: Supported as character
CA Datacom Datadictionary Valid Entry: V
SQL Data Type: VARCHAR
CA Ideal Support: Supported
CA Datacom Datadictionary Valid Entry: V
SQL Data Type: VARCHAR
CA Ideal Support: Supported
Varying-length character string whose maximum length is determined by the amount of space available in a block after all fixed-length fields have been subtracted from the blocksize (assumes one record per block). See following notes.
CA Datacom Datadictionary Valid Entry: V
SQL Data Type: LONG VARCHAR
CA Ideal Support: Supported
CA Datacom Datadictionary Valid Entry: D
SQL Data Type: DECIMAL or DEC, maximum length = 16 bytes
CA Ideal Support: Supported
CA Datacom Datadictionary Valid Entry: N
SQL Data Type: NUMERIC, maximum length = 31 bytes
CA Ideal Support: Supported
CA Datacom Datadictionary Valid Entry: H
SQL Data Type: n/a
CA Ideal Support: Not supported
CA Datacom Datadictionary Valid Entry: S
SQL Data Type: CHAR
CA Ideal Support: Not supported
CA Datacom Datadictionary Valid Entry: L
SQL Data Type: FLOAT, REAL, DOUBLE PRECISION
CA Ideal Support: Not supported
CA Datacom Datadictionary Valid Entry: E
SQL Data Type: CHAR
CA Ideal Support: Not supported
See notes following this list.
CA Datacom Datadictionary Valid Entry: Y
SQL Data Type: GRAPHIC
CA Ideal Support: Not supported
See notes following this list.
CA Datacom Datadictionary Valid Entry: Z
SQL Data Type: CHAR with FOR MIXED DATA
CA Ideal Support: Supported as character
CA Datacom Datadictionary Valid Entry: G
SQL Data Type: GRAPHIC
CA Ideal Support: Not supported
CA Datacom Datadictionary Valid Entry: W
SQL Data Type: VARGRAPHIC
CA Ideal Support: Not supported
With attribute LONG=Y varying-length double-byte character set whose maximum length is determined by the amount of space available in a block after all fix ed length fields have been subtracted from the blocksize (assumes one record per block). See the following notes.
CA Datacom Datadictionary Valid Entry: W
SQL Data Type: LONG VARGRAPHIC
CA Ideal Support: Not supported
See notes following this list.
CA Datacom Datadictionary Valid Entry: K
SQL Data Type: GRAPHIC
CA Ideal Support: Not supported
CA Datacom Datadictionary Valid Entry: T
SQL Data Type: n/a
CA Ideal Support: Not supported
CA Datacom Datadictionary Valid Entry: 2
SQL Data Type: SMALLINT
CA Ideal Support: Not supported
CA Datacom Datadictionary Valid Entry: 4
SQL Data Type: INTEGER or INT
CA Ideal Support: Not supported
CA Datacom Datadictionary Valid Entry: 8
SQL Data Type: CHAR(8)
CA Ideal Support: Not supported
Notes:
|
Copyright © 2014 CA.
All rights reserved.
|
|