Ü  %CHECKR

It is used to check the position for non-occurrence of a character from right.

 

 

Example –%CHECKR built-in function in rpgle

 


FMT D  DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++++++++
*************** Beginning of data ************************************************
0001.00 D name            S             30A   inz ('Amit Jaiswal')
0002.00 D len             S              5U 0
0003.00
0004.00  /FREE
0005.00     len = %checkr(' ' : name);     // It returns the length of the string
0006.00     DSPLY  len;
0007.00  /END-FREE
0008.00 C                   SETON                                        LR
****************** End of data ***************************************************

 

 

OUTPUT

 

DSPLY  12

 

 





User Comments:





Copyright © Go4as400.com, 2013-2017. Copyright notice