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


VALUESX

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

The check item type VALUESX is the opposite of VALUES. This test allows you to specify a list of values that are not valid. The PARM1 attribute must have the value NE. The PARM2 attribute specifies the list of values that are not valid. The value the user enters cannot match any of the values specified in the list. Because case is respected in a VALUESX 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 not MATH, SCIENCE, ENGLISH, or HISTORY:
  <!doctype dm system>

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

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

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014