skip to main content

Procedure Division Statements : EXAMINE

EXAMINE
General Format
Format 1
Format 2
General Rules
1.
2.
3.
4.
5.
REPLACING Phrase
6.
A.
B.
C.
D.
Note - this statement is supported only with the -cv compiler flag.
Examples
Format 1 - Count how many "," characters are in the string
move "abc,cde,fgh,ijk" to ws-str
examine ws-str tallying all ","
Format 1 - Count how many "," characters are in the string and replace them by "|"
move "abc,cde,fgh,ijk" to ws-str
examine ws-str tallying all "," replacing by "|"
Format 2 - Replace all "," by "|" on a string
move "abc,cde,fgh,ijk" to ws-str
examine ws-str replacing all "," by "|"
Format 2 - Replace first "|" by "," on a string
move "abc|cde|fgh|ijk" to ws-str
examine ws-str replacing first "|" by ","

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left