- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
A supplied string is
search for words (separated by spaces, tabs or commas), which are extracted and converted to the
required numerical data type. The numerical values and their number are returned.
Invocation
CALL
KPG1_PRSAx( BUFFER, MAXVAL, VALUES, NVAL, STATUS )
Arguments
BUFFER = CHARACTER
(
)
(Given)
The string containing a list of numerical values.
MAXVAL = INTEGER (Given)
The
maximum number of values that can be read from the buffer and stored.
VALUES( MAXVAL ) = ?
(Returned)
The numeric values extracted from the string.
NVAL = INTEGER (Returned)
The
actual number of values extracted from the string.
STATUS = INTEGER (Given and Returned)
The
global status.
Notes:
-
An appropriate bad value is returned for any word equal to "
BAD"
(case insensitive).
-
There is a routine for four numeric data type: replace "
x"
in the routine name by D, I, K, or R as
appropriate. The array returned from the routine must have the data type specified. The limitation on
other integer types is because there are no conversion routines between them and character in the
CHR library.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑