Specifications

4-16
Guide to Printers and Printing
Input Integer To Stack:
%#xx”..@..” Extracts a selected portion of the string attribute named xx. The
selection criteria is defined by the pattern ”...@...”. The selection
pattern consists of three parts:
1. sThe string immediately preceding the string to be extracted. If
the prefix regular expression is missing, the extracted string
consists of the entire string preceding the pattern specified by the
suffix regular expression.
2. The extracted string replaces the %#xx”..@..” operation
sequence in the attribute currently being processed.
3. The string immediately following the string to be extracted. If the
suffix regular expression is missing, the extracted string consists
of the entire string following the pattern specified by the prefix
regular expression.
No string is extracted if the value of the string attribute is null. No
string is extracted if the prefix or suffix regular expression is nonnull
and does not have a corresponding match in the attribute value
string.
Note: The ampersand (@) and quote () characters need to be
surrounded with a separate pair of quotes if their meaning is to
be taken literally. Otherwise, the program reads these symbols
as delimiters.
When embedding a %# operator within a regular expression
portion of another %# operator, the ampersand (@) and quote (
) characters cannot be used for their literal meaning. To avoid
this situation, place the embedded %# operator in a separate
attribute value and include the new attribute within the regular
expression of the outer %# operator.
%Gxx Gets the integer attribute whose name is xx and pushes it onto the
stack. If the attribute is a string instead of an integer, the string is
assumed to be an ASCII integer. It is converted to a binary integer
using the atoi subroutine and pushed onto the stack.
%’c’ Pushes character constant c onto the stack, where it becomes the
low–order byte of an integer value. The high–order bytes are set to
0 (zero).
%{nn} Pushes integer constant nn onto the stack. The constant is a
decimal value and can be either positive or negative.