The Line Counter Specification Fields [ HP RPG/iX Reference Manual ] MPE/iX 5.0 Documentation
HP RPG/iX Reference Manual
The Line Counter Specification Fields
The fields you use in the Line Counter Specification are described in the
sections which follow in this chapter. Each field has a unique name and
occupies specific positions (columns) in the specification.
Use the Channel Number Fields (columns 15-74) when you want to simulate
the use of channels in the printer carriage control tape. Use the Line
Number Fields (columns 15-24) when the lines to which you need to skip
vary.
Sequence Number (Columns 1-5)
This field contains the source record sequence number, described in
Chapter 2.
Specification Type (Column 6)
This field contains an L to identify this line as a Line Counter
Specification.
File Name (Columns 7-14)
This field names the output file to which this specification applies.
This field is required.
---------------------------------------------------------------------------------------------
| | |
| Columns 7-14 | Description |
| | |
---------------------------------------------------------------------------------------------
| | |
| Valid file name. (File names can contain | Name of the printable file to which this |
| from one to eight characters, beginning | Line Counter Specification applies. |
| with a letter. The remaining characters | |
| can be letters or digits. Embedded blanks | |
| are not allowed.) | |
| | |
---------------------------------------------------------------------------------------------
Channel Number Fields (Columns 15-74)
The next three fields let you assign up to twelve logical printer
carriage control channels to specific line numbers.
Line Number (Columns 15-17).
This field contains the line number that corresponds to the channel or
overflow line entered in the next field.
--------------------------------------------------------------------------------------------
| | |
| Columns 15-17 | Description |
| | |
--------------------------------------------------------------------------------------------
| | |
| 1-112 | The line number to which the channel number in the next field, |
| (right justified, | or the overflow line, refers. |
| leading zeros are | |
| not required) | |
| | |
| blank | If the channel in the next field has already been defined, this |
| | line number is ignored (the previous line number is used). If |
| | the channel in the next field has not been defined previously, |
| | the line number equal the channel number multiplied by 5. (For |
| | instance, Channel 3 is line 15.) |
| | |
--------------------------------------------------------------------------------------------
Channel Number/OL (Columns 18-19).
This field identifies the channel number to which the line number in the
preceding field applies. Or, it identifies the line number (in the
previous field) as the overflow line.
--------------------------------------------------------------------------------------------
| | |
| Columns 18-19 | Description |
| | |
--------------------------------------------------------------------------------------------
| | |
| 1-12 | The channel number to which the line number in the preceding |
| (right-justified, | field is assigned. |
| leading zeros are | |
| not required) | |
| | |
| OL | The line number in the preceding field is the overflow line. If |
| | the previous field is blank, line 60 (Channel 12) is the |
| | overflow line. |
| | |
| | When you space, skip, or print beyond the overflow line (but not |
| | beyond the current page) the overflow indicator, if used, is |
| | turned on and detail and total lines (including those |
| | conditioned by the overflow indicator) are printed. |
| | |
| blank | If the previous field contains a line number, it is ignored. |
| | |
--------------------------------------------------------------------------------------------
Line Number and Channel Number/OL (Columns 20-74).
Columns 20-74 let you assign additional channels to line numbers. The
two previous fields, Line Number (columns 15-17) and Channel Number/OL
(columns 18-19) are repeated to allow you to enter a total of twelve
channel number assignments. Enter data into columns 20-74 according to
the rules presented for those fields.
The first pair of blank Line Number and Channel Number/OL Fields ends the
assignments. You can enter overflow and channel number assignments in
any order and you can assign two or more channels to the same line
number.
Example
Figure 6-2 assigns Channel 1 to line 12, Channel 3 to line 15, and
Channel 4 to line 20 for the file PRINTX. It also designates line 63 as
the overflow line for the file.
___________________________________________________________________________________
| |
| 1 2 3 4 5 6 7 |
| 678901234567890123456789012345678901234567890123456789012345678901234|
| _______________________________________________________ |
| |
| LPRINTX 0120101503020040630L |
| |
| |
___________________________________________________________________________________
Figure 6-2. Using the Channel Number Fields
Line Number Fields (Columns 15-24)
The next three fields let you specify the number of lines per printed
page and the line that signals page overflow.
Line Number (Columns 15-17).
This field identifies the last line number on the page or the line at
which page overflow occurs. This field is used in conjunction with the
next field, OL/FL (columns 18-19).
--------------------------------------------------------------------------------------------
| | |
| Columns 15-17 | Description |
| | |
--------------------------------------------------------------------------------------------
| | |
| 1-112 | The line number of the overflow line or the page length, as |
| (right-justified, | determined by the next field. |
| leading zeros are | |
| not required) | |
| | |
| blank | None. |
| | |
--------------------------------------------------------------------------------------------
OL/FL (Columns 18-19).
This field identifies whether the line number in the previous field is
the overflow line or the last line on a page.
--------------------------------------------------------------------------------------------
| | |
| Columns 18-19 | Description |
| | |
--------------------------------------------------------------------------------------------
| | |
| OL | The line number in the preceding field is the overflow line. If |
| | the previous field is blank, line 60 is used. |
| | |
| | When you space, skip, or print beyond the overflow line (but not |
| | beyond the current page), the overflow indicator, if used, is |
| | turned on and the detail and total lines (including those |
| | conditioned by the overflow indicator) are printed. |
| | |
| FL | The line number in the previous field is the form (page) length. |
| | If the previous field is blank, line 66 is used. |
| | |
| blank | Line 60 is the overflow line; there are 66 lines per page. |
| | |
--------------------------------------------------------------------------------------------
When you enter the overflow line and the page length but do not use Fetch
Overflow, allow enough space between the overflow and page length lines
for detail and total lines and skip accordingly.
Line Number and OL/FL (Columns 20-24).
Columns 20-24 let you specify either the overflow line or the page length
(the one you have not already assigned in columns 15-19). Columns 20-24
consist of two fields that correspond to Line Number (columns 15-17) and
OL/FL (columns 18-19), respectively. Enter data into these columns
according to the directions for those fields. You can assign the page
length and overflow lines in any order in columns 15-24.
Example
Figure 6-3 defines line 68 as the overflow line for the file PRINTY.
It also specifies that line 74 is the last line on a page.
___________________________________________________________________________________
| |
| 1 2 3 4 5 6 7 |
| 678901234567890123456789012345678901234567890123456789012345678901234|
| _______________________________________________________ |
| |
| LPRINTY 068OL074FL |
| |
| |
___________________________________________________________________________________
Figure 6-3. Using the Line Number Fields
Program Name (Columns 75-80)
This field contains the program name. The format of this field is
discussed in Chapter 2.
MPE/iX 5.0 Documentation