|
VADELIA |
SADELIA |
WADELIA |
MADELIA |
|
(I/B) (C/S) |
(B) (S) |
(I/B) (C/S) |
(I) (C/S) |
Section for use
DECLARATION
Syntax
DSI Id SeriesDSFields
DSI Id *REF_LDM(EntityAccJoin)
Description
Declaration of a Data Structure named Id, consisting of a series of DS fields.
The start position and the type of field can be specified.
With numeric fields, the type is used to determine whether the field is packed (P), four-byte binary (B) or extended (the default type).
Click here for the explanation of the SeriesDSFields element.
You can refer to all the fields in an entity, access or join entity, by using the keyword *REF_LDM followed by the name of an entity, access or join entity.
The DSI instruction initializes the fields in the Data Structure when the program is loaded.
Note: The declaration must be in the global declaration block of a program or server block; with server blocks the fields must belong to the server.
Example
DS DataStruc1 CpnyCode ItemCode
DS DataStruc2 CpnyCode,1 ItemCode,5 FamCode
DS DataStruc3 CpnyCode,B ItemCode,P FamCode
DS DataStruc4 CpnyCode,1B ItemCode,5P FamCode
DS DataStruc5 CpnyCode,P ItemCode,5B FamCode,10
DS DataStruc6 *REF_LDM(Customer)
DSI DataStruc7 CustomerCode,B ItemCode,P FamCode
DSI DataStruc8 CustomerCode,B RequestCode ItemCode