Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
I don't have any of my old COBOL manuals so I cannot tell you exactly what the syntax differences are. But examine is no longer supported in the recent versions of COBOL. It was replaced by the INSPECT statement. The functionality of EXAMINE and INSPECT are generally the same.
Please see the syntaxes for both the verbs...you will find the differences like
there are only 3 options in EXAMINE where in you cant replace all the characters at a time but in INSPECT you can replaces and you can take the count of all the characters if you want.....and more over there is no count variable in EXAMINE but you can specify the count variable in INSPECT.....