Forums
S3 Interfaces/Conversion
Inspect and replace with double quotes
Author
Messages
jcarrott
Basic Member
Posts: 7
6/28/2012 1:19 PM
I am trying to inspect for a character "#" and the replace it with a " (double quote) on a windows system.
The system does no seem to support single quotes or hex.
I used "#" as a simple place holder that I wanted to replace with a double quote.
Does anybody know how to do this?
John Henley
Senior Member
Posts: 3349
6/28/2012 2:10 PM
Do you mean in COBOL?
Phil Romov
Veteran Member
Posts: 44
7/2/2012 3:49 PM
What are you inspecting? Most text editors have a "search and replace" function
By the way, cobol does support hex:
02 WS-HEX-VALUE PIC X VALUE X"41".
DISPLAY "HEX VALUE: " WS-HEX-VALUE.
HEX VALUE: A