Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

VERIFY

Example

VERIFY returns an unscaled REAL FIXED BINARY value indicating the position in x of the leftmost character, widechar, graphic, or bit that is not in y. It also allows you to specify the location within x at which to begin processing.

If all the characters, widechars, graphics, or bits in x do appear in y, a value of zero is returned. If x is the null string, a value of zero is returned. If x is not the null string and y is the null string, the value of n is returned. The default value for n is one.

Read syntax diagramSkip visual syntax diagram>>-VERIFY(x,y-+----+-)-----------------------------------------><
              '-,n-'
 
x
String-expression.
y
String-expression.
n
Expression n specifies the location within x where processing begins. It must have a computational type and is converted to FIXED BINARY(31,0).

Unless 1 <= n <= LENGTH(x) + 1, the STRINGRANGE condition, if enabled, is raised. Its implicit action and normal return give a result of 0. If n = LENGTH(x) + 1, the result is zero.

The BIFPREC compiler option determines the precision of the result returned.

VERIFY will perform best when the second and third arguments are either literals, named constants declared with the VALUE attribute, or restricted expressions.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)