Tstrip - Monarch 9460 Programmer's Manual

Adk printer
Hide thumbs Also See for 9460:
Table of Contents

Advertisement

T S T R I P
Purpose
Strips characters from a field based on a template.
Syntax

TSTRIP

Process
The TSTRIP command strips data from
Buffer-field2
characters (_). The printer matches the
new data, as follows:
♦ If the characters in the same position match, they are stripped.
♦ If the template has an underscore character, the printer does not strip that
♦ If the character is the same position do not match, they are are not stripped.
Buffer-field1 and buffer-field2
Optional Fields
Invalid
chapter.
TSTRIP SHIP_NO, "1___66"
Example
In this example, assume "123456" is in the SHIP_NO field. It matches up to the
template as follows:
Position
1
2
3
4
5
6
See Also
CSTRIP
RSTRIP
LSTRIP
buffer-field1, buffer-field2
contains a template that has a series of numbers and underscore
character.
Buffer-field1 and Buffer-field2
INPUT
Logical Field Name (TEMP1)
Logical Field Name (LU1)
Logical Field Name (PR1)
Buffer-field2
only:
String
and
valid labels
Original Data
Template
New Data
Match Description
1 matches 1, so the number is stripped.
Underscore keeps the 2.
Underscore keeps the 3.
Underscore keeps the 4.
5 does not match 6, so the number is kept.
6 matches 6, so the number is stripped.
[
,
[
invalid label
buffer-field1
buffer-field1
can be one of the following:
Description
Input Buffer
Temporary Buffer Field
Lookup Buffer Field
Printer Buffer Field
An ASCII string delimited
with double quotes.
are discussed in "Script Flow" at the beginning of this
123456
1___66
2345
] [
, valid label
] ]
buffer-field2
as specified by
with the template, resulting in
Command Reference 5-83
.

Advertisement

Table of Contents
loading

Table of Contents