PRINT Messages

When you run it without any parameters, PRINT displays the printer queue and reports:

Dthe name of the file printing slave program

Dthe status of the file printing slave program

Dthe line printer LU for that print job

Dthe print job's priority (lower numbers get printed earlier)

Dthe terminal LU from which that print job was invoked

When you run it with parameters, PRINT displays a warning message if any input file is a type 1, 2, 5, 6, or 7 file, or if FMP errors occur while reading a file.

In these cases, control passes from the first unprintable file in the runstring to the next printable file.

PRINT issues a warning and quits entirely in the following cases:

Dif you enter the system BR (Break) command

Dif you enter an unrecognizable option

Dif you create an unwritable output file, or if an FMP error occurs while accessing an output file

Dif the printer LU goes down, or the LU number is outside the 0 to 255 range or does not exist

Dif PRINT cannot find PRIN0, the master printing clone, or cannot execute PRIN0

Dif nine or more PRINT requests are already active

PRINT Return Values

PRINT always returns the following values:

$RETURN1 the number of errors encountered by PRINT $RETURN_S the name under which PRIN0 was run

In addition, the +Z option can be used to force PRINT to wait for PRIN0 to finish before PRINT itself completes. This allows PRIN0 to pass return values back to PRINT, which can then pass them back to the caller (for example, CI). Therefore, if the +Z option is specified, the following additional values are returned:

$RETURN2

the number of files printed by PRIN0

$RETURN3

the number of errors encountered by PRIN0

48 The PRINT Utility