|
Position |
Field Length |
Field Name |
Notes |
|---|---|---|---|
|
1 |
1 |
Set Code |
Required |
|
2 |
8 |
Statement Type |
DISPLAY |
|
10-11 |
2 |
Title Table Suffix |
VO recommended for VM data |
|
12-80 |
3 |
Output Data Element Selection Table |
1 to 23 occurrences of lnn where: l: = Number of leading spaces (0-9) nn:= Output Data Element ID (01-H3) Refer to VM Data Elements Table |
This statement, identified by the statement type DISPLAY, is required. The DISPLAY statement lets you select the desired data elements for display and define the print line format.
The Output Data Element Selection Table allows you to select as many as 23 data elements from a pool of available elements to display in a given report. The table entries are in the format lnn where,
is a one-digit number of leading spaces.
is a two-character code identifying the data element selected for display.
This identification corresponds to the DE ID in the Output Data Elements Table. See the VM Output Data Elements Table starting later in this chapter.
Each DISPLAY statement must have a set code.
The following example illustrates a typical DISPLAY statement:
ADISPLAY V0002101504106512113129142146147
This DISPLAY statement defines the format for Report A as indicated by the set code in statement position 1. The data elements selected, in order, are:
Each of the selected fields were preceded by the following number of spaces, respectively: 0,1,5,1,5,1,1,1,1,1. The total print line cannot exceed 132 print positions. By using the indicated output length and the number of blanks preceding each selected data element, you can compute the total requested print line length.
Note: Figures are normally displayed with commas marking the thousands, millions and billions places. If a number does not fit the space available, the commas are dropped. Right-hand decimal places are the next characters dropped, two at a time. If the number is so large that even the rounded integer doesn't fit, the number is rounded further, the rightmost places dropped and the remaining numbers are followed by an asterisk and a number indicating the number of places dropped. Thus 386,957 (or 387,000) becomes 387*3. Sign values are always retained.
| Copyright © 2012 CA. All rights reserved. |
|