z/OS ISPF Dialog Tag Language Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


VALUES

z/OS ISPF Dialog Tag Language Guide and Reference
SC19-3620-00

To perform a values test, specify the check item TYPE attribute as VALUES. A values test allows you to specify a list of values. The value the user enters must match one of the values in the list. The PARM1 attribute must have the value EQ. The PARM2 attribute specifies the list of values. Because case is respected in a VALUES check, if you want case to be ignored, you must code an UPPER translation and code the values all in uppercase.

Here is an example where a check in a variable class named subject ensures that the value entered is MATH, SCIENCE, ENGLISH, or HISTORY:
<!doctype dm system>

<varclass name=subject type='char 10'>
  <xlatl format=upper>
  </xlatl>
  <checkl msg=liba008>
     <checki type=values parm1=eq
     parm2='MATH SCIENCE ENGLISH HISTORY'>
  </checkl>

The conversion utility generates a LIST verification statement in the )PROC section.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014