NET/MASTER Network Control Language (NCL) Programmer's Guide

User-Defined Maps
Standard and User-Defined Maps
11–44 106160 Tandem Computers Incorporated
NonStop NET/MASTER MS stores some TYPE clause data types in internal form
different from how they are stored in external form in an MDO variable.
Table 11-6 summarizes how TYPE clause data types are treated.
Table 11-6. Considerations for TYPE Clause Data Types
TYPE Clause Data Type Internal Form External Form
BINARY 8 N.A. N.A.
BINARY 8 UNSIGNED N.A. N.A.
BINARY 16 N.A. N.A.
BINARY 16 UNSIGNED N.A. N.A.
BINARY 16, n Stored as an integer without the decimal point.
The value of the integer must be from -32768
through 32767. Example: 1532.
Stored as a sequence of digits with a decimal
point. If negative, the digits are preceded by the
negative unary operator (-). Example: 15.32
(assuming n=2).
BINARY 16, n UNSIGNED Stored as an unsigned integer without the
decimal point. The value of the integer must be
from 0 through 65535. Example: 1532.
Stored as a sequence of digits with a decimal
point. Example: 15.32 (assuming n=2).
BINARY 64 N.A. N.A.
BINARY 64, n Stored as an integer without the decimal point.
The value of the integer must be from -32768
through 32767. Example: 1532.
Stored as a sequence of digits with a decimal
point. Example: 15.32 (assuming n=2).
COMPLEX The two numbers are stored in eight bytes. Each
number is a 4-byte FLOAT 32 value.
Each number is stored as a sequence of digits.
The numbers are surrounded by parentheses
(( )) and separated by a comma (,). Example:
(10,15).
ENUM Stored as an integer. Example: 0. The unenumerated value is stored as a
sequence of digits. Example: 0. The
enumerated value is stored as a sequence of
characters. Example: RED. (You refer to the
enumerated value by appending a number sign
(#) to the variable name.)
FLOAT N.A. N.A.
FLOAT 32 N.A. N.A.
FLOAT 64 N.A. N.A.
LOGICAL Stored as an integer. Example: 5. If the value in internal form is 0, then the value in
external form is 0; otherwise, 1. Example: 1.
LOGICAL 2 Stored as an integer. Example: 0. If the value in internal form is 0, then the value in
external form is 0; otherwise, 1. Example: 0.
LOGICAL 4 Stored as a long. Example: 1. If the value in internal form is 0, then the value in
external form is 0; otherwise, 1. Example: 1.
N.A. Not applicable