%LISTITEM

The %LISTITEM function returns one item from the items in a list. A list is a character value consisting of zero or more individual values separated, if there is more than one value, by a specified delimiting character. List values are typically created by an %XML or %TABLE function.

Format

%LISTITEM(list-value, item-number [,delimiter])

Parameters

list-value

The list from which you want to retrieve an item.

item-number

The number of the item that you want to retrieve, in the range 1-1024.

delimiter

Optional delimiter character. Must be a single non-numeric character. Defaults to a comma (,).

Return value

Returns the requested item.