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

TALLY

Example

TALLY returns a FIXED BINARY(31,0) result that indicates the number of times string y appears in string x. If y does not appear in x, a value of 0 is returned.

Read syntax diagramSkip visual syntax diagram>>-TALLY(x,y)--------------------------------------------------><
 
x and y
String expressions.

Both x and y must have computational type and should be character, bit, graphic or widechar type.

If either x or y are the null string, the result is zero.


Terms of use | Feedback

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