Inspect and replace with double quotes

 2 Replies
 0 Subscribed to this topic
 11 Subscribed to this forum
Sort:
Author
Messages
jcarrott
Basic Member
Posts: 7
Basic Member
    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
    Posts: 3353
      Do you mean in COBOL?
      Thanks for using the LawsonGuru.com forums!
      John
      Phil Romov
      Veteran Member
      Posts: 44
      Veteran Member
        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