|
|
Native Mode Spooler Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 5 UtilitiesThe Spoolfile Interface Facility (SPIFF) |
|
The spoolfile interface facility (SPIFF) allows you to list, manipulate, and transfer spooled device files (spool files) that are created and maintained by MPE/iX. SPIFF is an MPE/iX replacement for the MPE CM SPOOK5 program. SPIFF supports many (but not all) of the commands of the SPOOK5 program. Several existing features have been enhanced, and new features have been added. Wherever this has been done, the default is the closest approximation to SPOOK5 behavior. Where differences exist, they are described here. These are the commands you can use with SPIFF:
To run SPIFF, enter this:
or this:
SPIFF displays an identifying banner and its > prompt.
SPIFF is now ready to accept any of the commands listed above. All user input is case-insensitive (except for the default case of quoted search strings in the FIND command). In addition, non-SPIFF commands are passed to MPE/iX as entered—there is no up- or down-shifting. SPIFF represents an enhancement of SPOOK5. SPIFF supports most, but not all, of the commands accepted by SPOOK5. In addition, SPIFF accepts new commands not available to SPOOK5.
SPIFF opens the formal file designator SPIFFIN as its $STDINX and the formal file designator SPIFFOUT as its $STDLIST. You may redirect these files as desired with a file equation. However the record width of any redirected SPIFFOUT should not be less than 80 bytes; otherwise displays and messages may generate an error when SPIFF directs them to SPIFFOUT. Do not specify a REC= parameter in a file equation for any tape file. The wrong combination of values may be rejected with an error message. Because SPIFF opens $STDINX (SPIFFIN), a colon in column one does not produce an end-of-file condition. Entering :EOD, however, does produce an EOF. When SPIFF encounters a colon in column one, it strips the colon and passes the result to the CI for processing. If the result is a valid MPE/iX command, the command is executed; otherwise, an error message is returned.
The colon is not necessary with SPIFF. If it is not present, SPIFF processes a candidate command in the same way SPOOK5 did (local dictionary first, then the CI). Any command not recognized by SPIFF, or any command preceded by a colon ( : ), is passed to MPE/iX's Command Interpreter through the HPCICOMMAND intrinsic, which will execute the command whether it is an MPE/iX command, UDC, command file, or program file. The RUN command is allowed by HPCICOMMAND. Because some commands are not executed by HPCICOMMAND, SPIFF will not execute the following commands: Table 5-1 Commands Not Executed within SPIFF
You may specify one command in the INFO string (for example, SPIFF;INFO="SHOW @.@"). SPIFF executes the specified command before displaying the first command prompt. One and only one command is allowed in the INFO string. The entire INFO string is parsed. If it contains a syntax error, an error message is displayed and the command is ignored. You may slso specify the file name of a file containing SPIFF commands (...INFO=^filename) and SPIFF will read (FREAD) the the file, one record at a time, and execute the commands. You may specify any number of SPIFF commands, but each command must be a separate record.
With two exceptions, SPIFF recognizes the first letter or the full form of the command (for example, F or FIND). The two exceptions are APPEND and STORE. The abbreviations for these two commands require two letters (AP, ST) to distinguish them from the ALTER (A) and SHOW (S) abbreviations, respectively. This differs from SPOOK5, which recognized commands by any leftmost subset of characters. For example, F, FI, FIN, and FIND all executed the FIND command in SPOOK5,. SPIFF uses Native Mode Spooler (NMS) display routines and displays its output through the MPE/iX LISTSPF or the SPOOLF command. For example, the SHOW command executes through a LISTSPF display. SHOW;@ executes as LISTSPF;DETAIL. Also, when you invoke MODE CONTROLS=ON, a subsequent LIST displays data using the MPE/iX PRINTSPF format.
SPIFF error and warning messages roughly parallel the corresponding SPOOK5 messages, although the text has been changed.In many cases the error or warning number has also changed. The command line syntax of all retained (SPOOK5) commands has also been retained. However, any displays that result employ the NMS command formats. The SPIFF console user can access any spool file on the system, regardless of capabilities. This is consistent with the spool file access rights of MPE/iX commands. By contrast, a SPOOK5 user at the console gained no additional spool file access rights by using the console. A user having neither SM nor AM capability could access only those files that she or he had created. With SPIFF, a non-console user has spool file access rights that vary with the user's capabilities:
The SPIFF commands outlined in “SPIFF commands summary” are described in detail in the sections that follow. |
|