................MAXIMUM AUTHORIZATION LEVELS BY APPLICATION....................
G/L (01): _  A/P (02): _
  SPLR(48): 9  SEC.49: 9  PROG(50): 9
Press PF4 for browse (LOC)SCREEN  Press PF13 for Hardcopy
Press PF16 for Copy field to buffer  Press PF17 to Paste data from buffer
Press PF2 for field-level HELP
```**
Figure 01 --  Device Control Screen
##
RPH File
The RPH file contains control and status information about every spooled report. The file has a maximum capacity of (cont.)
99,999 Report Header records; thus, the TP Spooling System can accommodate up to that many Spooled reports at any given (cont.)
time. The usual configuration is with 999 Report Header records activated with the remaining numbers held in (cont.)
reserve.
The only key to this file is Report Number. As reports are spooled they are assigned Report Numbers, starting with 001 (cont.)
and incrementing up to the maximum (usually 999) then "wrapping" back to 001. As each new report is STARTed and its (cont.)
number is assigned, the appropriate Report Header record is updated with the parameters specified by the originator (cont.)
program.
This file does not contain spooled print data. That data is on the Spool file (SPL file). The Report Header record (cont.)
"points" to the record on the SPL file where the actual report data begins and also to where it (cont.)
ends.
When a report is "flushed", usually after being printed, the Report Header record is cleared and all the SPL file records associated with the report are "freed" for subsequent use by other reports.
Inquiry, browse, and partial update capabilities are provided via the online function codes:
**
RPHSEE
**
SEE a report header
**
RPHCHG
**
CHanGe a report header
**
RPHLOC
**
LOCate a report header
**
RPHLST
**
LiST report headers for this LOCATION
RPHLOC requires a Level 9 authorization.
RPHLST must be done from a device which is defined to the DVC file, even if you are a Level 9.
RPHCHG and RPHSEE must be done from a terminal which is defined to the DVC file unless you are a Level 9. They will only access Report Headers routed to the same LOCATION as the terminal you are at.
##
RPH File Maintenance
Real-time access to Report Header data is provided using the Report Control Screen shown in Figure 02.
The key value in SKEY is a 4-digit report number.
**Report Number** is not enterable, it is where the system displays the Report Number on inquiries.
**Desc** is where the report description (up to 30 characters) is displayed, you can alter it here also.
**Origin** is where the system displays the terminal-id of the device which originated this report. It is not enterable.
**Location** is the 3-character location code to which this report is directed. The value in this field will be validated against MAGEC Lookup Table # 252. You may alter it here.
**Class** is the print class of this report, you can alter it here. Any alphabetic or numeric character will be accepted.
**Form** is the 4-character form code (or number) on which this report is to be printed. A value of blanks indicates that it may be printed on whatever paper happens to be on the printer.
**Disposition** is the report disposition, you may alter it. The report disposition obviously has a significant impact on the actions taken by the Spooler. Valid values are:
**
F
or
FLUSH
**
Flush the report to recapture space
**
H
or
HOLD
**
Don't print/Don't flush
**
D
or
DELETE
**
Print report then flush it
**
L
or
LEAVE
**
Same as HOLD
**
K
or
KEEP
**
Print then set to LEAVE
**Copies Requested** is the number (00 to 99) of copies of this report which are requested. The first time a report is (cont.)
printed is considered "original" and subsequent printings are considered "copies"; thus a value of 99 will result in (cont.)
the report's being printed 100 times, 00 will cause it to print once. You may alter this.
**Copies Printed** is not enterable, it is where the system displays the number of times a report has been printed thus far.
**Status**** **is not enterable, it is where the current status of this report is displayed. Possible values are:
**
SPOOLING
**
In process of being spooled
**
DONE
**
Done printing, waiting to be flushed
**
READY
**
Spooled, ready to print
**
PRINTING
**
Being printed at a device
**
PRINTED
**
Through printing (at least once), waiting to be reprinted
**or set to DONE status
FLUSHED
**
All resources returned to system, all records released for re-use.
**Printer Trmid** is the Terminal ID of the device on which this report is printing or has been printed. Not alterable.
**Number Of Spool Records** is not enterable, it is a display of the number of SPL file records used to hold this report.
**First** is not enterable, it is the record number of the first SPL file record for this report.
**Next** is not enterable, it is the record number of the SPL file record next-in-line to be printed at the device. It can only have a non-zero value while the report is printing.
**Last** is not enterable, it is the Record Number of the last SPL file record used to contain this report. Note that (cont.)
SPL file records are not necessarily used in any particular sequence and that it is perfectly normal for the "last" (cont.)
record to be a lower number than the "first" record, or vice-versa.
**Lines of Print** is not enterable, it displays the number of lines of print in the report.
**Pages of Print**** **is not enterable, it displays the number of pages of print in the report.
**
NOTE:
**
On the RPHSEE function the operator may transfer to a display of the beginning of the actual report data, then use PF8 (cont.)
to "chain" forward and PF7 to "chain" backward through the report, which is stored on the SPL file.
| ```
**
RPH... rrrr
  M A G E C
TP SPOOLING REPORT CONTROL SCREEN
REPORT NO rrrr DESC:...................... ORIGIN:....
LOCATION: ... CLASS: . FORM: .... DISPOSITION: ..........
COPIES REQUESTED: .. PRINTED ..
STATUS= ........ PRINTER TRMID ....
NUMBER OF SPOOL RECORDS ..... FIRST=.....,NEXT=.....,LAST=.....
LINES OF PRINT=....
PAGES OF PRINT=....
Hit PF6 to view the report
```**
Figure 02 --  Report Control Screen
##
SPL File
The SPL file is where the actual reports are stored. As print lines are spooled (via the Spool Subroutine) they are (cont.)
compressed and "blocked" to conserve space. A "block" (one SPL file record) consists of up to 1,920 characters of (cont.)
report data plus 20 characters of SPL record ID and "chaining" information.
The SPL file consists of a fixed number (usually 15,360) of preinitialized records, plus one control record for (cont.)
maintaining status of the system and each of the SPL file records. The possible statuses for a SPL file record are (cont.)
:
AVAILABLE
 
IN USE
 
Initially, of course, all of them are AVAILABLE. When a report is spooled it occupies one or more SPL file record(s), (cont.)
these are marked IN USE as thay are used. When that report is flushed, then all the SPL file records which it formerly (cont.)
occupied are marked AVAILABLE once again. They may then be re-used to contain other reports' data.
Any number of SPL file records may be used by a report, they are not necessarily used in any particular sequence. As a (cont.)
report is spooled it obtains (and occupies) SPL records one by one as needed depending on the size of the report. Any (cont.)
number of concurrently active tasks may be spooling at any given time.
SPL records are identified (keyed) by Ordinal Record Number, a numeric value from 00001 through the maximum (usually 15,360).
As each report being spooled needs another SPL record it is given the lowest SPL record which is AVAILABLE. In a (cont.)
multi-tasking environment where records are being used and released by many concurrent tasks this means that the second (cont.)
record (or subsequent records) might very well have a lower number than the first record. In order for the Spooler to (cont.)
be able to "navigate" from the first to the second and so on, a technique of "chaining" is employed. As each SPL record (cont.)
is used for the report it is updated to contain the Record Number of the Prior (last) record and the Next record for (cont.)
this report.
The actual report detail data stored in each SPL file record is compressed (trailing blanks truncated) and contains some special control characters which have meaning to the online printer:
**
FF
**
Form Feed
**
NL
**
New Line
**
NULL
**
Null (Idle), non-printing "padding"
Online inquiry into the SPL file is provided via the function codes:
**
SPLSEE
**
SEE a Spool record
**
SPLNXT
**
See the NeXT Spool record
**
Program Function keys (PF keys) are used to move about within the report you are viewing. The display screen presented (cont.)
contains the Identification and chaining data as well as the actual spooled report detail data, plus PF key (cont.)
instructions.
**
The SPLSEE/SPLNXT display shows reports approximately as they will appear when printed (if, that is, you decide to (cont.)
actually print them). The major difference is that the amount of data displayed is limited by the width and length of (cont.)
the screen (24 by 80). Therefore, these functions include PF keys to control scrolling up and down and left and (cont.)
right.
PF8 will scroll forward a screenful at a time
PF7 will scroll backward a screenful at a time
PF20 will scroll forward one line at a time

next: splr03.md.txt