Command Reference 5-57
LSTRIP
Purpose Strips characters from a field, and copies the remaining characters to another field.
Syntax LSTRIP
field-buffer1, field-buffer2, field-buffer3
[
,
[
invalid label
] [
, valid label
] ]
Process The LSTRIP command strips the left-most characters from
field-buffer1
and copies
the remaining characters to
field-buffer2
.
Field-buffer3
is the number of characters
to strip.
Field-buffer1
,
field-buffer2
, and
field-buffer3
can be one of the following:
Field-buffer1, Field-
Buffer2, and Field-
Buffer3
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
Field-buffer1
and
Field-
buffer2
only:
String
ASCII string delimited
by double quotes.
Field-buffer3
only:
Number
Number prefixed by a
number sign (#)
Optional Fields
Invalid
and
valid labels
are discussed in "Script Flow" at the beginning of this
chapter.
Example
This example strips the five left-most characters from the SHIP_NO field and
copies the remaining characters to the SKU field.
LSTRIP SHIP_NO, SKU, #5
See Also
TSTRIP
RSTRIP
CSTRIP