ADELIA |
|
|
|
|
(I/B) |
|
|
|
|
Section for use
All
Syntax
DSI Id SeriesDSFields
Description
This instruction defines a data structure the same way the DS instruction does. But it initializes the DS fields at the beginning of the program. This avoids input/output errors on numeric fields of the DS in case those fields are not set to zero before being used.
A mandatory name not exceeding 6 characters must be given to the data structure.
See the DS (Adelia context) instruction for more details.
Click here for the explanation of the SeriesDSFields element.
Example
* You have a DATE variable (8,0) equal to |
|
04032002 |
* For this field to be broken down as: |
MONTH |
04 |
* |
DAY |
03 |
* |
YEAR |
2002 |
* |
MONTH_YEAR |
042002 |
* you must write:
DSI DSDATE DATE,1 MONTH,1 DAY,3 YEAR,5 MONTH_YEAR,3
* or
DSI DSDATE DATE MONTH,1 DAY YEAR MONTH_YEAR,3
* or
DSI DSDATE MONTH DAY YEAR MONTH_YEAR,3 DATE,1
* All DS fields are set to zero at the beginning of the program.
See also the list of 4GL instructions by topic