If certain members are to be selected in the LMS statements for processing, this can be done in two ways:
through the use of “wildcard” specifications in the ELEMENT, VERSION and TYPE operands.
The “wildcard” syntax is described in the syntax description section on "Syntax description"ff.
It is also possible to use the keyword *ALL for an individual asterisk (*) in the operands ELEMENT, VERSION and TYPE, but not in the EXCEPT-ELEMENT structure.
Negative selection, i.e. exclusion of members, can also be effected through the EXCEPT-ELEMENT operand as well as with the minus sign. This operand offers more options than the minus sign.
through the qualification of attributes, e.g. date and time.
Examples of multiple selection
Multiple selection
ELEMENT = AB/C*
All members whose names begin with AB, have any character in the
3rd, and a C in the 4th position are selected. The contents from the
5th position are freely selectable.ELEMENT = <:999>(VERSION=B*)
All members having a name length of up to 3 characters and with a
B in the first position of the version, are selected.ELEMENT = *(VERSION=*),CREATION-DATE = INTERVAL(FROM=2013-01-01)
All members entered since 1.1.2013 are selected.
ELEMENT = AB*(VERSION=*HIGHEST-EXISTING)
The highest version of all members whose name begins with AB is
selected each time.Multiple selection with limiting values
ELEMENT = A*(VERSION = *HIGH), USER-DATE = INTERVAL(TO=12-12-31)
All members of the highest version whose names begin with A and
which have a date earlier than 1.1.2013 are selected.ELEMENT = AB<:9>(V=107)
All members whose names begin with AB, are up to 3 characters
long and have the version 107 are selected.
Multiple selection with members for exclusion
ELEMENT = -ABC
All members except member ABC are selected.
ELEMENT = A*, EXCEPT-ELEMENT = (ELEMENT = *ANY(VERSION = B*))
All members whose names begin with A and whose versions do not
begin with B are selected.ELEMENT = *(VERSION = <402:>*), EXCEPT-ELEMENT=(EL=*(V=402))
All members whose version is greater than 402 are selected.
ELEMENT = L<:999>, EXCEPT-ELEMENT = (ELEMENT=*ANY(VERSION=1))
All members whose names begin with L and are up to 4 characters
long, except those having version 1, are selected.