Previous | Contents | Index |
General Rules (Screen Description)
The LOWLIGHT clause specifies that the field is to appear on the screen with the lowest intensity. When only two levels of intensity are available, normal intensity and LOWLIGHT will be the same.
The LOWLIGHT clause can be specified only for an elementary screen description entry.
The NEXT GROUP clause specifies information for the vertical positioning of the next report group on a logical page following the presentation of the last line of a report group.
next-group-line-num
is a positive, 1- to 3-digit integer value greater than zero. It represents an absolute line number on a logical page and establishes a print line for the next Report Writer report group.next-group-line-num-plus
is a positive, 1- to 3-digit integer value. It represents a relative line number on a logical page and establishes a print line for the next Report Writer report group.
The OCCURS clause defines tables and provides the basis for subscripting and indexing. It eliminates the need for separate entries for repeated data items.
table-size
is an integer that specifies the exact number of occurrences of a table element.min-times
is an integer that specifies the minimum number of occurrences of a table element. Its value must be greater than or equal to zero.max-times
is an integer that specifies the maximum number of occurrences of a table element. Its value must be greater than min-times.key-name
is the data-name of an entry that contains the OCCURS clause or an entry subordinate to it. key-name can be qualified. Each key-name after the first must name an entry subordinate to the entry that contains the OCCURS clause. The values in each key-name are the basis of the ascending or descending arrangement of the table's repeated data.ind-name
is an index-name. It associates an index with the table and allows indexing in table element references.depending-item
is the data-name of an elementary unsigned integer data item. Its value specifies the current number of occurrences. depending-item can be qualified.
If the subject of the OCCURS clause (or any of its subordinates) has the SYNCHRONIZED clause, the length of the subject of the OCCURS clause, or the group containing it, could increase. SYNCHRONIZED clause alignment can add fill bytes to the group containing the subject of the OCCURS clause and to the subject itself.
01 ITEMA. 03 ITEMB OCCURS 10 TIMES PIC XX. |
01 ITEMA. 03 ITEMB OCCURS 8 TIMES. 05 ITEMC OCCURS 10 TIMES. 07 ITEMD PIC X. 07 ITEME PIC XXX. |
01 ITEMA. 03 ITEMB PIC X(6). 03 ITEMC PIC 99. 03 ITEMD PIC X(20). 03 ITEME OCCURS 1 TO 50 TIMES DEPENDING ON ITEMC. 05 ITEMF PIC XX. 05 ITEMG OCCURS 10 TIMES. 07 ITEMH PIC X. 07 ITEMI PIC XXX. |
The PAGE clause defines the length of a logical page and the vertical subdivisions within which report groups are presented.
page-size
is a 1- to 3-digit integer. It defines the number of lines available on a logical page.heading-line
is a 1- to 3-digit integer. It defines the first line number for a REPORT HEADING or PAGE HEADING report group on the logical page.first-detail-line
is a 1- to 3-digit integer. It defines the first line number for a CONTROL HEADING, DETAIL, and CONTROL FOOTING report group on the logical page.last-detail-line
is a 1- to 3-digit integer. It defines the last line number for a CONTROL HEADING or DETAIL report group on the logical page.footing-line
is a 1- to 3-digit integer. It defines the last line number for a CONTROL HEADING or DETAIL report group on the logical page.footing-line
is a 1- to 3-digit integer. It defines the last line number for a CONTROL FOOTING report group and the first line number for the PAGE FOOTING report group on the logical page.
Table 5-6 shows the page regions established by the PAGE clause.
Region Boundaries | |||
---|---|---|---|
Report Groups that Can Be Presented in a Region | First Line Number of the Region | Last Line Number of the Region | Line Positioning for the First Report Group Within the Region |
Report Heading Described with NEXT GROUP NEXT PAGE Report Footing Described with LINE line-num NEXT PAGE |
heading-line |
page-size |
LINE-NUMBER plus heading-line minus 1 |
Page Heading | |||
Report Heading Not Described with NEXT GROUP NEXT PAGE |
heading-line |
first-detail-line minus 1 |
LINE-NUMBER plus heading-line minus 1 |
Control Heading | first-detail-line | last-detail-line | If LINE-COUNTER is greater than or equal to first-detail-line, position on LINE-COUNTER plus 1 |
Detail | If LINE-COUNTER is less than first-detail-line, position on first-detail-line | ||
Control Footing | first-detail-line | footing-line | Same as preceding |
Page Footing | footing line | page-size |
|
Report Footing Not Described with LINE line-num NEXT PAGE | plus 1 |
LINE-NUMBER
plus footing-line |
The PICTURE clause specifies the general characteristics and editing requirements of an elementary item, including an elementary screen item.
Category of Receiving Item | PICTURE of Receiving Item | Valid Contents of Sending Item | Examples |
---|---|---|---|
Alphabetic | Must contain one or more As. | One or more alphabetic characters. |
AA
A(9) |
Numeric | Must contain at least one 9. May contain P's, one S, and one V. If USAGE IS COMP-5 or USAGE IS COMP-X, may contain all Xs. | One or more numeric characters. |
S9(4)V99
9PPP SPP9 |
Alphanumeric | Must contain combinations of As, Xs, and 9s. Can be all Xs. Cannot be all As or all 9s. | One or more characters in computer character set. |
XX99XX
AAXA(4) |
Alphanumeric
Edited |
Must contain at least one A or X. Must also contain at least one B, 0, or /. Can contain one or more 9s. | One or more characters in computer character set. |
XXBXXB9(4)
XX/99/00 9(6)/X |
Numeric
Edited |
Must contain at least one 0, B, /, Z, *, +, (comma), ., --, CR, DB, or cs. Can contain Ps, 9s, and one V. Must describe 1 to 31 digit positions, which can be represented by 9s, zero suppression symbols (Z, *), and floating insertion symbols (+, --, cs). | One or more numeric characters. |
*,***.**
ZZ,ZZZ/9(4) $$,$$$DB $9,999CR ZZZCR **.** |
COMP-1 and COMP-2 data items are numeric. However, their data description entries cannot have a PICTURE clause. |
Picture Clause Symbol | Function |
---|---|
A | Represents a character position that can contain only an alphabetic character. An alphabetic character belongs to the set of characters: A to Z, a to z, and the space. |
Can occur more than once. | |
Counts toward the size of the item. | |
B | Represents a character position into which a space is inserted. |
Can occur more than once. | |
Counts toward the size of the item. | |
N | For USAGE IS DISPLAY, represents a character position that can contain any 2-byte character from the national character set. This is available only if /NATIONALITY=JAPAN or -nationality japan is specified. |
P | Specifies an assumed decimal scaling position, defining the location of the decimal point when one is not specified in character-string. |
Can occur more than once, but only as a contiguous string of Ps at either the leftmost or rightmost end (not both) of character-string. The assumed decimal point character (V) is redundant when specified. However, when it is specified, V can appear to the left of the leftmost P or to the right of the rightmost P. | |
Does not count toward the size of the item. However, each P counts toward the maximum number of digit positions (31) in a numeric or numeric edited item. | |
Cannot be used if an explicit decimal point (.) appears in character-string. | |
In certain operations that refer to an item with P characters in
character-string, the compiler treats each P position as if it
contained the value zero. For example, an item with PICTURE 99PPP can
have 100 unique values that range from 0 to 99,000 (0, 1000, 2000, ...,
99,000). An item with PICTURE PP9 can have 10 unique values (0, .001,
.002, ... .009). These operations are any of the following:
|
|
In all other operations, the compiler ignores the digit positions specified with the symbol P and does not count them toward the size of the operand. | |
S | Indicates the presence of an operational sign, but does not specify the sign representation or position. |
Can occur only once, as the leftmost character in character-string. | |
Does not count toward the size of the item unless the data or screen description entry contains a SIGN IS SEPARATE clause. If the SIGN clause does not appear in the item's data description, S is equivalent to SIGN IS TRAILING. | |
V | Specifies the location of the assumed decimal point. |
Can occur only once. | |
Does not count toward the size of the item. | |
Cannot be used if an explicit decimal point (.) appears in the PICTURE. | |
X | For USAGE IS DISPLAY, represents a character position that can contain any character from the computer character set. For USAGE IS COMP-5 or USAGE IS COMP-X, represents a byte of computer storage. |
Can occur more than once. | |
Counts toward the size of the item. | |
Z | Represents a leading digit position that is replaced by a space when its value and the value of the digits to its left are zero. |
Can occur more than once. | |
Counts toward the size of the item. | |
Use of Z excludes the use of the asterisk (*) for zero suppression and replacement. | |
9 | Represents a digit position that can contain only the digits 0 to 9. |
Can occur more than once. | |
Counts toward the size of the item. | |
0 | Represents a character position into which 0 is inserted. |
Can occur more than once. | |
Counts toward the size of the item. | |
/ | Represents a character position into which a slash (/) is inserted. |
Can occur more than once. | |
Counts toward the size of the item. | |
, | Represents a character position into which a comma (,) is inserted. + |
Can occur more than once. | |
Counts toward the size of the item. | |
. | Represents a character position into which a decimal point (.) is inserted. It also represents the decimal point for alignment purposes. + |
Can occur only once. | |
Counts toward the size of the item. | |
Cannot be used if V or P appears in character-string. | |
+ -- | Represents the editing sign control symbols, the plus sign (+) and minus sign (-). |
Each can occur more than once. | |
Each counts as one character toward the size of the item. | |
character-string can contain either a plus sign (+) or minus (-), but not both. Also, the use of either character excludes the use of both CR and DB. | |
CR DB | Represents the editing sign control symbols, credit (CR) and debit (DB). |
Each can occur only once, as the two rightmost character positions. | |
Each counts as two characters toward the size of the item. | |
character-string can contain either CR or DB, but not both. Also, the use of either excludes the use of the plus sign (+) and minus sign (-) as fixed insertion characters. | |
* | Represents a leading digit position that is replaced by an asterisk (*) when its value and the values of all digit positions to its left are zero. |
Can occur more than once. | |
Counts toward the size of the item. | |
Use of an asterisk (*) excludes the use of Z for zero suppression and replacement. | |
cs | Represents a character position into which the currency symbol is inserted. This symbol is either the currency sign ($) or the character specified in the CURRENCY SIGN clause of the SPECIAL-NAMES paragraph or (on OpenVMS only) the character specified at DCL command level in the definition of the SYS$CURRENCY logical name. |
Can occur more than once. | |
Counts as one character toward the size of the item. |
Previous | Next | Contents | Index |