CREPLACEn

Read syntax diagramSkip visual syntax diagram
>>-CREPLACEn=from_string,-+-----------+------------------------><
                          '-to_string-'   

CREPLACEn
Where n is a number in the range 1 to 5, specifies the from pseudo-text character string that you want to be replaced by another character string in your COBOL copybooks via a COBOL REPLACE statement. The from_string must be 1 to 30 characters in length. The to_string is optional. If supplied it must be 1 to 30 characters in length. If it is not supplied a comma must still be used to delimit the from string.