This chapter describes the installation parameters you specify to set up the print spool.
From the Installation Description menu, select Print Spool Description to display this screen:
Specify the following options:
Spool printers:
Specify the number of printers serviced by the print spool. From 0-8 printers may be specified. These printers display at the top of the Print Spool screen during operation.
The default number of Spool printers is 0, meaning the spool feature is not used. You must define at least 1 Spool printer in order to use the print spool.
Spool printers act as filters. They route files from the spool directory to PC printers based on preset selection criteria. On the Assign Devices menu, Spool printers are named SPOOL1 through SPOOL8. Assignment of Spool printers to destination devices is discussed in a later step.
Performance Tuning: If you are not using the print spool function, leave the number of Spool printers at 0. This frees memory buffers which can be used by other program features.
SPOOL directory:
A DOS directory is used as the print queue for spooling. This directory is automatically created the first time you run the software. The spool directory name displays as SPOOL in the list of Destination choices under Assign Devices, regardless of what name you assign the directory.
Retain directory:
This is an optional directory used to automatically store files after they print from the spool. In some applications it is useful to save, or retain, a file after printing so that you can print another copy at a later time.
The Retain directory must be on the same disk drive as the SPOOL directory. If the directory does not already exist, it is automatically created the first time you run the software. If a Retain directory is not specified but a file is set for a Disposition of Retain, the file will be saved to the root directory on the print spool drive, usually C:\ .
In the software, the Disposition attribute is used to select which files to save. The default is for all files to be retained, meaning the file Disposition is set to Retain or is blank. The Disposition field can be changed either on the Print Spool screen during program operation or on the File Attribute Table in the Installation Description. On the Print Spool screen, you can change the Disposition for individual files interactively. The File Attribute Table allows you to preset the Disposition for individual files, groups of files, or all files.
When a file is retained, the file date and time are changed to the current PC date and time. (This allows use of the feature that automatically deletes old retain files after a specified period.)
A separate Restore screen is provided for managing the files stored in the Retain directory. The Restore screen is described in Chapter 14.
Form|FCB name is used to control spool.
This option lets you choose whether the Form name or FCB name is used to control the printing of spool files. The control name displays on the Print Spool screen to the right of the file name, after the file State and Disposition. This location is also referred to as the control column. The heading for the control column on the Print Spool screen will match your selection.
Form
FCB
The following screen shows what the Print Spool screen looks like if you choose Form to control spool printing:
If you choose FCB to control spool printing, FCB displays instead of Form.
Display FCB|Form name on spool control screen?
This option allows you to display both the Form name and FCB name on the Print Spool screen. The PC operator may find it useful to see both names. However, only the name specified by the previous option, FCB/Form name is used to control spool, controls printing.
The display name appears on the Print Spool screen in the first column, immediately before the file name. This location is also referred to as the display column. The heading for the display column will match your selection.
No
Yes
For example, if you select Form name is used to control spool and set Display FCB name on spool control screen? to Yes, the Print Spool screen looks like this:
The FCB name appears in the display column. When the job begins to print, the Spool printer name displays in place of the file State.
If you select FCB name is used to control spool and set Display Form name on spool control screen? to Yes, the columns on the Print Spool screen will be reversed.
Printing can start before end of file is received?
Specify whether the entire file must be received before it can start printing, or if a file can begin printing while it is in the process of being received.
Yes
No
Sort spool files by
Four sort criteria may be specified for setting the order in which files display during print spooling. Files print in the same order that they are displayed. Up to four sort variables may be specified. Print spool files are sorted by the first variable, then subsorted by the remaining three variables.
Tips for entering sort criteria
Use the RIGHT ARROW key to move between the sort variables.
Use the PLUS SIGN on the keypad to select one of the following attributes: Prty, Class, File, Size, Form, Date, or Time.
Set any unused variables to blank.
The default Prty >, Date <, and Time causes files to be sorted by the highest priority, oldest date, and oldest time. In the sort criteria, > indicates ascending order and < indicates descending order.
Variable Name |
Means |
Sort Order |
Prty> |
Priority |
highest to lowest |
Prty< |
Priority |
lowest to highest |
Class |
File class |
lowest to highest |
File |
File name |
alphanumerically |
Size> |
File size |
largest to smallest |
Size< |
File size |
smallest to largest |
Form |
Form name |
alphanumerically |
Date< |
Date |
oldest to newest |
Time< |
Time |
oldest to newest |
Date> |
Date |
newest to oldest |
Time> |
Time |
newest to oldest |
(blank) |
Variable not used |
__ |
Sort retain files by
Four sort criteria may be specified for setting the order in which retained files display on the Restore screen. The default is to sort by Date > and Time >, the newest date and time. Sort criteria choices are the same as for the Sort spool files by option.
Use File Attribute Table?
A table of file attributes may be used to automatically assign criteria to files or to override existing criteria.
No
Yes
Allow operator to modify file attributes?
Choose whether the PC operator may alter the attributes of print spool files from the Print Spool screen.
Yes
No
Check SPOOL directory for new files every ___ seconds.
Specify how often the software should check for new files in the print spool directory and update the list of files on the Print Spool screen. This parameter applies only to files copied into the print spool directory from DOS or the LAN. Files received from a host computer display immediately. The default check interval is 300 seconds. Use of a very small interval, such as 5 seconds, is not recommended because it will reduce program performance.
Include printer form header only once during reprint?
This option is useful during Reprint of spool files and controls whether form information is sent to the printer only once.
Yes
No
Log operations to LOG device?
Specify whether messages are written to the console log file to help you track print spool activity. To use this feature, you must set up the log device by specifying LOG(FILE) in Assign Devices.
No
Yes
START SPOOL1: STOCKUPD.RPT to LPT1
END SPOOL1: STOCKUPD.RPT to LPT1
If a file is printed using the Reprint option, messages display in this format:
START SPOOL1: PAYROLL.RPT to LPT1
REPRINT SPOOL1: PAYROLL.RPT to LPT1
END SPOOL1: PAYROLL.RPT to LPT1
When files are deleted or restored, messages display in this format:
DELETED: DAILY.RPT
RESTORED: LABELS.JOB
When a file is manually deleted and a retain directory is specified, a message indicates that the file has been retained:
RETAINED: DAILY.RPT
Delete old Retain directory files?
If you are using the Retain directory feature, choose whether old retain files are automatically deleted. This feature may be used to free disk space when many files are being retained.
No
Yes
Retain files for ___ days.
Specify the number of days for which files are retained before being automatically deleted. The default retain period is 7 days. When files are moved to the Retain directory, the date and time are changed to the current PC date and time to enable tracking of the retain period. The software deletes the expired retain files each time the program is started and at midnight when the PC system date changes.
This option is valid only if Delete old Retain directory files? is set to Yes.
After the print spool parameters are specified on the Print Spool Description screen, press ENTER to display the Printer Initialization criteria. The three fields State, Form, and Class control how the Spool printers select files to route at program startup. The values for these fields must match the attributes for a file in order for the file to print.
These fields may be changed during print spool operation. However, each time the program is run the criteria will be reset to the initial values specified under Printer Initialization.
The value for Spool printers must be set to at least 1 for this screen to display.
Assign the following startup values:
Printer
The name of the Spool printer displays in this column. The number of printers which display depends on the number of Spool printers specified on the Print Spool Description screen.
State
This parameter indicates the initial state of the printer at program startup. A different state may be specified for each printer.
Ready
Reprint
Disabled
Form
If you want to route files based on a specific form name, enter a form name. The form name may contain up to 8 characters. DOS wildcards * and ? may be used in the form name to select groups of forms. If this field is left blank, the form name will not be used in the print selection criteria.
Class
Enter one-character class names. Either a number or a letter may be used for the file class. Files copied into the Spool directory from DOS are automatically assigned a class of Z.
Up to five classes can be entered for each printer. If this field is left blank, class will not be used in the print selection criteria.
The File Attribute Table is used for automatic assignment of file attributes and is especially useful for unattended print spool operation. As files are received to the SPOOL directory, their spooling attributes can automatically be assigned or overridden by the definitions in the File Attribute Table. In most cases, no changes are made to the attributes within the files. The override values simply display on the Print Spool screen and are used when the files print. (Values from the File Attribute Table are written to the file only if you change the file State from the Print Spool screen.)
The File Attribute Table is enabled by setting Use File Attribute Table? to Yes on the Print Spool Description screen. It displays after the Printer Initialization screen.
Each line in the table is a separate entry, and each entry has two parts: file match criteria and file override values. Filename and Form are the match criteria. State, Class, Prty, Copies, and Disposition are the override values.
Files received to the print spool are checked against the match criteria of each entry in the table. The override values in the table are used only if the Filename or Form of the file matches an entry in the table. Override values for the file display on the Print Spool screen.
If both Filename and Form are specified in a single table entry, then both the Filename and Form from the file must match the table in order for the override values to be used. If a table entry contains only the Filename (the Form is blank), only the Filename must match. If only the Form is specified in the table (the Filename is blank), then only the Form must match.
If more than one table entry matches the file, the program applies each matching entry in a cumulative manner, beginning with the first entry of the table. For example, if there are two matching table entries, the attribute changes from the first matching entry are applied, then the attribute changes from the second matching entry are applied. If the first and second matching entries both change the same attribute, the second matching entry replaces the value from the first matching entry.
The DEFAULT line at the bottom of the table is used to provide default attributes for any files whose Filename or Form do not appear in the table. The DEFAULT line is useful for providing values for most files, and individual table entries can be used to specify exceptions for a few files.
When specifying the attribute override values, only attributes with specified values are used. Blank attributes in the table indicate that the value from the file, if any, is used.
Up to 20 table entries may be made. If more table entries are needed, a version of the software which supports 100 entries is available. The fields for each table entry — file match criteria and file override values — are described below.
Match Criteria
Filename
The file name in the table must be an exact match of the full name of the file, including the file extension. This means that a table Filename without an extension (i.e., DATA) can only match a file that has no extension, and a table Filename with an extension (i.e., DATA.001) can only match a file that has an extension. DOS wildcards may also be used in the table Filename. For example, names like DATA*.* or TAX??JUN may be specified.
Form
The form name in the table must be an exact match of the form name for the file. DOS wildcards also may be used in the form name, for example STD* or CHECKS??.
Override Values
State
Specify the initial State assigned to the file when it is placed in the print spool. Choices include Ready and Hold. Other states may be set from the Print Spool screen.
Ready
Hold
Class
Specify the file Class. The Class may be used as part of the criteria which determines on which Spool printer the file prints. Either a number or a letter may be used for the file Class. Files copied into the print spool directory from DOS are automatically assigned a class of Z.
Prty
Specify the file Priority number. The Priority may be used as criteria for the Spool printer to determine on which printer the file prints. The highest Priority is 9; the lowest Priority is 1.
Copies
Specify the number of Copies to print. If Copies is not specified in the file and the number in the File Attribute Table is left blank, the default value is 1 copy.
Disposition
The Disposition attribute allows you to selectively Retain or Delete individual files. When specified on the DEFAULT entry line, the Disposition applies to all files not listed in the table.
Retain
Delete
A sample table entry is shown below.
According to this table:
Files named TAX1040 with a form of 1040 will be placed on hold and will be assigned Class=I, Priority=5, and Copies=5. The files will be retained after printing.
Any file with the form INV99 will be ready for printing and will be assigned Class=Z, Priority=3, and Copies=2. Files will be retained after printing.
Any file with a form name of LABELS will be ready for printing and will be assigned Class=I and Priority=2. The copy count will be taken from the file. If the file copy count is blank, a default copy count of 1 is assigned. After printing, the file will be deleted.
Any files not listed in the table will be put on hold and will be assigned Class=A and Priority=5. The files will be retained after printing.
When you finish making table entries, press ENTER to return to the Installation Description menu.