Fujitsu UDS/SQL V2.5 Manual Do Utilizador

Página de 324
Defining an item
Schema DDL
56
  
 U929-J-Z125-9-76
4.2.1
Defining an unpacked numeric item 
 
[level-number ]item-name PICTURE IS mask-string.
Unpacked items can contain numeric values only. They can be used for arithmetic opera-
tions and can be printed out. 
level-number
 specifies whether the item is part of a repeating group: 
If the item is not to be part of a repeating group, the specified level number should be the 
smallest level number in the whole record type. This is especially important if the item is to 
be used as a key item. 
If the item is to be part of a repeating group, proceed as described on 
The default value for level-number is 1. 
item-name
 specifies the name assigned by the user. 
mask-string
 defines the item value range, i.e. the symbolic representation of all possible item 
contents, by means of a mask.
mask-string
 may consist of the following symbols:
Symbol
Designation
Explanation
S
Sign  symbol
Mandatory, if positive and negative item contents are 
to be distinguished. If S is not specified, UDS/SQL 
assumes the item content to be a positive numeric 
value. This symbol is specified once only at the 
beginning of the mask string.
9
Digit  symbol
is the only symbol of the mask specifying a physical 
storage location. This storage location can be filled 
with a decimal digit. The digit symbol can be repeated 
any number of times. The frequency of repetition 
determines the item length
Table 4: Symbols of mask-string when defining an unpacked numeric item
(part 1 of 2)