In RPGLE, is there any easier way to find a position of a number of character occur in a string? For Eg, text = 'AAAA|BBB|CC| |DDD| |FFF|0.12|CCC| '
I want to get the position of 7th delimiter('|‘) because I would like to replace the value of 0.12. My way is to loop whole string and count the number of delimiter(’|‘). I wondering is %scan or %check could help on this? Thanks.