DAT_DREP

Obtain primitive data representation information

Description:

The routine returns information describing how the data stored in a primitive object are actually represented. An object’s data representation will match that used by the computer system on which it was created, and this forms a permanent attribute of the object. If necessary, HDS will automatically perform conversion to the representation used by the host computer when the data are accessed (except when using DAT_BASIC, which provides direct access to the data without conversion).

Invocation

CALL DAT_DREP( LOC, FORMAT, ORDER, STATUS )

Arguments

LOC = CHARACTER  ( DAT__SZLOC ) (Given)
Primitive object locator.
FORMAT = CHARACTER  (  ) (Returned)
Description of the format used to encode each data element (see the “Data Format” section).
ORDER = CHARACTER  (  ) (Returned)
Description of the (byte) storage order used for each data element (see the “Storage Order” section).
STATUS = INTEGER (Given and Returned)
The global status.

Notes:

Data Format

HDS currently supports the following encodings of primitive data elements. Each description is preceded by the character string returned by DAT_DREP to describe it:

Storage Order

HDS currently supports the following storage orders for the bytes of primitive data elements. Each description is preceded by the character string returned by DAT_DREP to describe it:

In the case of floating point formats, the byte in question is the most/least significant byte of the fraction.