5-74 Command Reference
RSTRIP
Purpose Strips characters from a field, and copies the remaining characters to another field.
Syntax RSTRIP
buffer-field1, buffer-field2, length
[
,
[
invalid label
] [
, valid label
] ]
Process The RSTRIP command strips the right-most characters from
buffer-field1
and
copies the remaining characters to
buffer-field2
.
Length
is the number of
characters to strip.
Buffer-field1
,
buffer-field2
, and length can be one of the following:
Buffer-field1
,
Buffer-field2
,
and
Length
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.
Length
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 right-most characters from the SHIP_NO field and
copies the remaining characters to the SKU field.
RSTRIP SHIP_NO, SKU, #5
See Also
LSTRIP
CSTRIP
TSTRIP