5-10 Command Reference
ARGREAD
Purpose Extracts field data from one field and places it in another.
Syntax ARGREAD
raw-data
,
destination
,
index
[ , [
invalid label
] [ ,
valid label
] ]
Process The ARGREAD command extracts data from
raw-data
and places it in
destination
.
The
raw-data, destination, and index
fields can be one the following:
Raw-Data, Destination, and
Index
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
Raw-data field
only:
String
ASCII string delimited by
double quotes.
Index field
only:
Number
Number prefixed by a number
sign (#). Range is 1-99.
Optional Fields
Invalid
and
valid labels
are discussed in "Script Flow" at the beginning of this
chapter.
Example
Assuming PARAMLIST contains SSN,Name,Item, the following example extracts
SSN and places it in the PARAM1 variable.
ARGREAD PARAMLIST, PARAM1, #1