1. Don't spool any more reports.
2. Print and/or flush some of the reports now on the Spool file.
3. Use the **SPLR CLEAR command to flush ALL spooled reports
** and release ALL SPL file records.
In order to do the last option the Spooler's status must be HALTED (on the **SPLR STATUS screen). To achieve this status enter:
**SPLR START
Wait for status to change to RUNNING or SLEEPING, then Enter:
**SPLR HALT
UNWANTED REPORTS ON FILE
In the event that there are reports on the SPL file, with proper RPH file headers, which are not wanted, enter:
RPHCHG rrr
where:
rrr
= report number
Alter the Disposition to FLUSH. The Supervisor will discard this report on the next cycle and release all its SPL file records for use by other reports.
INVALID DATA ON FILES
In the event that there is invalid data noted on the RPH file or SPL file which cannot be properly processed by the Spooler then first enter:
**SPLR CLEAR
Refer to SPOOL FILE FULL above for more instructions on using this command.
This should restore all the RPH file and SPL file records to "virgin" status; it also FLUSHes all reports which were on the files. If this does not correct the problem, then:
Restore the files from a recent "backup" or execute ALALDFIL with a control record to select only the SPL and RPH (cont.)
files. Executing ALALDFIL will initialize the files to a "virgin" status. Refer to ALALDFIL in the MAGEC "Offline (cont.)
Utilities" chapter for control card formats and JCL examples.
This situation should not occur, if it does that would be a strong indication that either:
1. The Spooler software is or has been flawed.
2. Someone else has "stepped on" the Spooler's files.
Call MAGEC Software's support line, if you are not able to correct the problem.
DEVICE HUNG IN BUSY STATUS
Occasionally you might find that a device (printer) is left in a status of BUSY (as per the DVCSEE screen), but that it (cont.)
is not actually printing a report. This might be because of a system crash, program abort while printing, or because (cont.)
the printer's status to CICS (or other TP monitor) was altered while it was printing. The MAGEC Spooler might not have (cont.)
sensed the error (especially if it occurred in between blocks of print data) and might have left the status of the (cont.)
printer as BUSY, though printing has actually ceased.
The first step in correcting this error situation is to issue the command:
**SPLR PAUSE/dddd
where dddd is the device ID. If the printer is actually printing a report when the PAUSE command is issued, then the (cont.)
printing program (which is a part of the MAGEC Spooler system) will sense the PAUSE command and will cease printing and (cont.)
set the device status to PAUSED and set the report's status to HOLD. If the printer was not printing a report, then its (cont.)
status will still remain BUSY, but a "PAUSE PENDING" status will also be set for the device. The DVCSEE display would (cont.)
show both the BUSY status and the PAUSE PENDING message. In that case, you should next do:
DVCCHG dddd
Then change the device status from BUSY to AVAILABLE (or another valid status). The report status, as shown on the RPHSEE screen, should be automatically altered to HOLD when you do this.
#
Printing on the System Line Printer
##
SPOOLPRT
A batch utility program is provided to allow spooled reports to be printed on the system line printer(s) which are (cont.)
usually located in the computer room. No special considerations need be made when spooling reports; in fact, the same (cont.)
report may be printed at an online hardcopy device and/or at the system line printer. A report may be spooled with a (cont.)
Disposition of KEEP and printed on one device then re-printed at another regardless of what type devices they (cont.)
are.
A special Location Code of SYS is reserved for the System Printers. The batch utility program scans the Spooler's files (cont.)
looking for reports routed to the Location of SYS which are READY to print. The name of the batch utility is (cont.)
SPOOLPRT.
Each execution of SPOOLPRT will find all the reports which are for Location SYS, are READY to print, and have (cont.)
Dispositions of KEEP or DELETE. All such reports are printed on the line printer and their Dispositions are altered (cont.)
according to the same rules as if they were printed to an online device.
If there are no reports to be printed then SPOOLPRT simply goes to end-of-job; therefore it is acceptable to execute SPOOLPRT whenever you suspect that there may be reports to be printed.
The DOS JCL to execute it is:
// JOB SPOOLPRT
// ASSGN SYS007,SYSLST
// EXEC SPOOLPRT
/*
/&
The OS JCL is:
//SPOOLPRT JOB acctg-data
//STEP1 EXEC PGM=SPOOLPRT
//SYS007 DD SYSOUT=*
//
#
Printing a Screen
##
The PRINTS Function
The Spooler includes a facility to allow you to "print" the contents of any MAGEC application's screen. The facility (cont.)
simply creates a "report" consisting of the screen image, including any data being displayed, and spools it by CALLing (cont.)
the Spool Subroutine just as your MMP's do. The screen image may be routed to any LOCATION, including SYS (which prints (cont.)
on the computer room line printer).
To print a screen you must first enter the appropriate function and key value to bring up the desired screen; then, on the top line of the screen (the Command Line) you enter:
PRINTS lll/c
where:
lll
= LOCATION to route to
c
= a valid Print CLASS
The generated "report" will be routed to the LOCATION and CLASS you have specified. If you omit the "lll/c" then MAGEC (cont.)
will default to the LOCATION of the terminal you are at and the first (lowest) print CLASS specified on your terminal's (cont.)
DVC file definition. If your terminal is not defined on the DVC file then MAGEC will default to the LOCATION=SYS and (cont.)
CLASS=P for lack of anything better.
The values of SFUNCT and SKEY will be restored to what they were before you typed in the PRINTS command. If you (cont.)
overtype any screen data when you enter the PRINTS command then it will be printed as it appears on the screen, with (cont.)
your overtyped modifications.
After generating the spooled screen image report, MAGEC will place a message in the SCOMPL screen field on the top line of your screen to tell you the Report Number and routing generated.
Standard generated MMP's utilize exactly this function when you press the (PF13) hardcopy key from a "maintenance" (cont.)
screen (as opposed to the "browse" screens used by the LOC, SCN, and FND functions). The MMP's simply do a fetch to the (cont.)
PRINTS function (FTHFUNCT). You can accomplish the same results by typing in the PRINTS command at any (cont.)
time.
#
Auto-Start
##
Start-Up Options
The MAGEC Spooler includes an Automatic Startup feature which can be used to initiate the Supervisor's "polling" and to (cont.)
reset error conditions at the time that your TP Monitor is initiated. This eliminates the need to remember to manually (cont.)
START the Supervisor via the **SPLR screen whenever the Monitor is brought down and back up, whether by intent or as a (cont.)
result of a "crash".
The Auto Startup feature has four possible startup options:
WARM
**
Restart the supervisor and restart printing of reports which may have been interrupted by a "crash".
**
COLD
**
Restart the supervisor.
**
CLEAR
**
Flush any reports on file and restart the supervisor.
**
NONE
**
Do nothing.
The Auto Startup routine is invoked whenever the Monitor is initiated. The normal procedure should be to invoke the (cont.)
WARM option, the others are for exceptional cases. WARM-start has several variations controlled by other parameters you (cont.)
specify. It can "clean up" the SPL file and RPH file and dispose of erroneous reports to minimize the need for manual (cont.)
handling. It can also advise the console operator of situations which might indicate a problem, such as a report which (cont.)
was in process of spooling when the system "crashed", etc.
##
Setting Startup Options
The Startup options are stored on a special control record which is on the RPH file. A batch utility program is used to (cont.)
set the desired values into the control record. Some users insert an execution of this batch program into the Monitor (cont.)
startup deck so that they can alter the options at the time they initiate the Monitor, other users prefer to leave it (cont.)
as a separate stand-alone job. The program is named SPOOLOPT.
You can tell SPOOLOPT what options you wish set in either of two ways:
1. A control card in the jobstream.
2. Via console prompts.
**
If there is a control card present then SPOOLOPT will accept it and set the options accordingly and will not prompt the console operator. There are three parameters which are set:
1. Startup Option (Clear, Cold, Warm, None).
2. Report Handling with errors (IGNORE, READY, FLUSH).
3. Device Handling with errors (IGNORE, AVAILABLE, DISABLE).
Items 2 and 3 apply only for the WARM startup option.
To execute SPOOLOPT in DOS:
// JOB SPOOLOPT
// ASSGN SYS006,SYSIPT
// DLBL RPHK1 ..... etc.
// DLBL SPLK1 ..... etc.
// ASSGN SYS007,SYSLST
// EXEC SPOOLOPT
- control card, if used
/*
/&
To execute SPOOLOPT in OS:
//SPOOLOPT JOB acctg-data
//STEP1 EXEC PGM=SPOOLOPT
//RPHK1 DD DSN=MAGEC.RPH.CLUSTER.... etc.
//SPLK1 DD DSN=MAGEC.SPL.CLUSTER.... etc
//SYS007 DD SYSOUT=*
//SYS006 DD *
- control card, if used
//
The control card format is:
Col. 01-09:
"SPOOLOPT"
Col. 10-19:
Startup option
CLEAR
Flushes all reports, then initiates the Supervisor.
COLD
Initiates the Supervisor polling without regard to errors.
WARM
Initiates the Supervisor, first scanning for errors and for reports which were being printed when the system was brought down.
NONE
Sets the Supervisor's Status to HALTED.
Col. 20-29:
Device-in-error handling option
IGNORE
It will ignore and bypass them.
READY
It will alter them to STATUS=READY, DISPOSITION=LEAVE.
FLUSH
It will flush them.
Col. 30-39:
Report-in-error handling option
IGNORE
It will ignore them.
AVAILABLE
next: splr06.md.txt