Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
You can declare A & B as alphanumeric and compare using IF as below.
01 A PIC X(20) VALUE 'HELLO WORLD'.
01 B PIC X(20) VALUE 'HELLO WORLD'.
IF A=B THEN DISPLAY "A AND B ARE IDENTICAL".
I don't think,we have FUNCTION for this.