![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/1/96/1965ee5a-4eaf-4c41-b9da-a7a9ef50be71/1965ee5a-4eaf-4c41-b9da-a7a9ef50be71-bg69.png)
Command Reference 5-83
TSTRIP
Purpose Strips characters from a field based on a template.
Syntax TSTRIP
buffer-field1, buffer-field2
[
,
[
invalid label
] [
, valid label
] ]
Process The TSTRIP command strips data from
buffer-field1
as specified by
buffer-field2
.
Buffer-field2
contains a template that has a series of numbers and underscore
characters (_). The printer matches the
buffer-field1
with the template, resulting in
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
character.
♦ If the character is the same position do not match, they are are not stripped.
Buffer-field1 and
buffer-field2
can be one of the following:
Buffer-field1 and
Buffer-field2
Description
INPUT Input Buffer
Logical Field Name (TEMP1) Temporary Buffer Field
Logical Field Name (LU1) Lookup Buffer Field
Logical Field Name (PR1) Printer Buffer Field
Buffer-field2
only:
String
An ASCII string delimited
with double quotes.
Optional Fields
Invalid
and
valid labels
are discussed in "Script Flow" at the beginning of this
chapter.
Example
TSTRIP SHIP_NO, “1___66”
In this example, assume “123456” is in the SHIP_NO field. It matches up to the
template as follows:
Original Data 123456
Template 1___66
New Data 2345
Position Match Description
1 1 matches 1, so the number is stripped.
2 Underscore keeps the 2.
3 Underscore keeps the 3.
4 Underscore keeps the 4.
5 5 does not match 6, so the number is kept.
6 6 matches 6, so the number is stripped.
See Also
CSTRIP
RSTRIP
LSTRIP