This function determines the values that are used for an index of a stem variable.
index = LOCSTEM(stem.,[num])
Parameters
Name of the stem variable (including the period).
Number of a stem item.
Returns one of the following:
(if num is specified): Value of the index for the specified stem item.
(if num is omitted or zero): Count of stem elements.
(if an error occurs): Error text.
Indexes are returned in the same order as they were created.
ARG n MISSING OR INVALID
STEM VARIABLE NOT FOUND
STEM HAS NO MEMBERS
Example
limit = locstem('ABC.') /* Obtain count of members */ do i = 1 to limit index = locstem('ABC.',i) /* Obtain value for index */ say 'ABC.'||index 'Has value: ABC.index end i
Copyright © 2014 CA Technologies.
All rights reserved.
|
|