This statement builds a criteria using the criteria definition. You can supply values for the variables used in the definition. Items can be tested against the built criteria.
This statement has the following format:
&CONTROL SHRVARS=($CR,pref,...pref)
-EXEC $CACALL OPT=ACTION
ACTION=BUILD
CLASS=CRITERIA
NAME='APPL=application id
[TYPE={PUBLIC | PRIVATE | FREEFORM}]
[USER=userid]
NAME=criteria name'
PARMS='MESSAGE=message'
A required parameter (not applicable for TYPE=FREEFORM) giving the application identifier of the criteria.
An optional parameter giving the type of the criteria. Valid values are as follows:
Public criteriaavailable for general use.
Private criteriaowned by a specific user ID.
Free-form criteriapresents a panel for the user to enter criteria.
Note: If you do not specify TYPE or USER, the function attempts to find a PRIVATE definition owned by the invoking user ID first. If unsuccessful, the function uses a PUBLIC definition.
An optional parameter (not applicable for TYPE=PUBLIC and TYPE=FREEFORM) giving the user ID of the user owning the criteria. Default is the user ID of the user invoking the function.
A required parameter (not applicable for TYPE=FREEFORM) giving the name of the criteria.
A message to be displayed on the criteria panel, if one is defined.