I have requirement, in which email id should be formatted.
e.g. firstname.lastname@example.org should become someone=else//website.com
To say, '_' should be replaced by '=' and '@' should be replaced by '//'.
I can use CONVERTING or REPLACING along with INSPECT verb in COBOL, and it allows me to replace '_' by '='.
But for '@' by '//', it is not allowing, as one position (@) is getting replaced by two positions (//).
Is there any workaround to replace/convert one position by two positions?