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


LISTV

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

To perform a LISTV check, specify the check item TYPE attribute as LISTV. A LISTV test allows you to provide a variable name that has been defined by your application to contain a list of valid variable values. The PARM1 attribute must have the value EQ. The PARM2 attribute must be a variable name entered with "%" as the first character.

Here is an example where a LISTV check in the majors variable class validates major subjects, providing the application has previously defined the listitem variable to contain the value “MATH SCIENCE ENGLISH HISTORY”:
<!doctype dm system>

<varclass name=majors type='CHAR 8'>
  <checkl msg=liba018>
     <checki type=listv parm1=eq parm2=%listitem>
  </checkl>

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

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014