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


PICTCN

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

To perform a PICTCN check, specify the check item TYPE attribute as PICTCN. A PICTCN check allows you to specify a pattern containing required characters to validate the variable. The PARM1 attribute contains a mask character. The PARM2 attribute contains the field-mask. The PARM3 attribute contains the validation string.

Here is an example where a PICTCN check in the socsec variable class validates the format of a social security number, including the hyphen (-) character in positions 4 and 7:
<!doctype dm system>

<varclass name=socsec type='CHAR 11'>
  <checkl msg=liba017>
     <checki type=pictcn parm1='*' parm2='***-**-****'
                  parm3='nnn-nn-nnnn'>
  </checkl>

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

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014