The purpose of this window is to describe the Data elements of each Report. This is achieved by listing the Data elements and identifying their position on layout lines, the source of the data and under what conditions the data is to be moved into the Data element.
Structure identifier value: (Data Element
codes called in the Structure, formats...)
Options | Description |
---|---|
01 to 98 | The structure number sequence must start from 01 (or 00) and contain no gaps. This value becomes a subscript for a table containing all the structures. |
00 | This value is used to identify fields required for user-defined spooling. The data elements belonging to this structure are positioned relative to the beginning of the record, and not to the beginning of the line, as is true of all other structures. At generation, structure '00' is taken into consideration
only if the
USAGE OF DATA STRUCTURE = 'J'. |
Click one of the Overview, DefinitionKeywords to access the information entered in the editor of the selected Data Element. The information can be updated directly in the editor.
Values | Comments |
---|---|
M | This default value is for Move. This option is used to transfer the source data to the data element. |
+ - x / |
add. substract Multiply divide COMPUTE is generated. |
R |
This option provides a rounded result on the calculation. |
D |
Date format XX/XX/XX. This option prints a date in extended format XX/XX/XX. The target data element must be 8 characters long, and the source, 6 characters. |
P |
Inversed date format. A date with a format XXYYZZZZ becomes YY/XX/ZZZZ.Be sure that the target Data Element field is 8 characters long and the source Data Element is 10 characters long. |
C |
Date format XX/YY/ZZZZ. A date with a format XXYYZZZZ turns XX/YY/ZZZZ. |
0 |
19 as century. |
1 |
'19' as CC if year < ref.yr;, '20'
otherwise The century is '19' if the year is lower than the year of reference. If the year is greater than the year of reference, the century is '20'. |
2 |
'20' as CC if year < ref.yr;, '19'
otherwise The century is '20' if the year is lower than the year of reference. If the year is greater than the year of reference, the century is '19'. |
E |
Date xxyyzzzz becomes yy/xx/zzzz |
T |
This option is used for Data Elements to
be totaled, and the total to be printed. When the type of line in
the report (refer to the -D tab, Edition
Line Definition section, Type of totalisation field) is:
A set of internal accumulators is associated with each data element to be totalled. The calculation of the sum is made each time through the processing loop. If a data element is only printed under certain conditions, these conditions will also apply to the totaling. The total itself will only be printed on a line designated for totaling. The maximum number of data elements to be totaled is 99 per program. |
S |
With this option selected, the data is transferred after table search. If the search is successful, the target data element will receive data from the table data element with the same name. Table search can only be performed from a non- repetitive field which has been defined in the standard way. |
U |
With this option, the data is transferred via user- defined procedures. |
Values | Comments |
---|---|
* |
This option indicates that the source does not have a standard VisualAge Pacbase structure. The 13 characters that follow will contain the expression data name to be integrated into the generated source language. No quotes are added. |
blank |
This is the read area of a file, as generated in the File section. |
1 |
Normally used for the processing area for files with control breaks, and tables. |
2 |
This is the update area of principal files. |
5 |
These are lines directly related to the report itself like record counter fields, line count fields, etc. |
6 |
This value is used for the output area. Other numeric and alphabetic values may also be used for user-defined prefixes. |
Values | Comments |
---|---|
Blank | No Index |
001 to 999 | A numeric value variable is used as the index for a table. |
nnn | Name of an index defined by the user |
I** | The standard index for search in tables. The index is generated in the form IddssR, where ddss is the Segment name, and R is the Search command. |
*cc | It is the standard index for repetitive category cc. The index is generated in the form Jddrcc, where ddr is the Report name, and cc, the repetitive category. |
For sources that are literals, enter the literal (starting and ending with a quote). The literal can be 11 characters long. For literals longer than 11 characters, you must use the -W Lines tab in the Program editor to define a specific VALUE clause.