Specifications

4-19
Printer, Plotter, and Spooler Subsystem Programming
%{2} pushes a value of 2 onto the stack
%e else
%{3} pushes a value of 3 onto the stack
%; endif
%d Outputs the value in ASCII format
Pass–through:
%x (The piocmdout subroutine call only.) Pass through from input to
output the number of bytes specified by the passthru argument to
the piocmdout subroutine.
Loops
%wx While loop. Whenever a matching %; is reached, the value of the
internal variable x (x can be a through z) is decremented by one. If
the result is greater than 0, execution is transferred to the
character following %wx.
Mode:
%o Starts using only original default values from the database instead of values that
may have been updated from the command line (or during formatter processing).
%r Returns to using the values that were being used before %o.
Pipeline Overrides:
%p Indicates where to embed the prefix–filter pipeline in the main
pipeline. If not present, it is assumed to be at the beginning of the
main pipeline. Ignored if the first character of the attribute name is
not i (that is it is not a main pipeline)
%z Indicates where to embed the pioout string (device–driver
interface routine) in the main pipeline. If not present, it is assumed
to be at the end of the main pipeline. If the first character of the
attribute name is not i (that is, it is not a main pipeline), it is
ignored.
%ix Can be specified only in a prefix filter string (that is, the first
character of the attribute’s two–character name is f). The x variable
represents a pipeline identifier character. The %ix variable
specifies that the attribute name for the main pipeline should be ix
instead of iy, where y is the parameter specified (or defaulted) for
the –d flag. As a special case %i! specifies that a null string should
be used as the main pipeline.