INSPECT and EXAMINE

What is the difference between INSPECT & EXAMINE?

Questions by aratik   answers by aratik

Showing Answers 1 - 15 of 15 Answers

Inspect and examine both perform the same function's.Only difference is that Inspect is far more powerful than Examine and the latter has been removed from later versions of COBOL.

Piece Of Advice-----before putting up anything and everything regarding mainframe why dont you first try googling :)

Rachell

  • Jul 21st, 2009
 

INSPECT and EXAMINE are STRING verbs of COBOL.

wheres EXAMINE has been removed from later versions of COBOL.

  Was this answer useful?  Yes

INSPECT and Examine Both are same examine was used in cobol version-I and
Inspect is using in COBOL Version_II. Both has the same functionality to
calculate the numbers of characters in the string by tallying.
Syntax
INSPECT (indintifier-1) Tallying { FOR all ( literals-1 ) } Leading Replace by


  Was this answer useful?  Yes

Both are same meaning one is used in Cobol-II other in Cobol-I. According to syntax

INSPECT identifire-1 TALLYING identifier-2 FOR ALL identifire BEFORE identifire.
REPLACING LEADING AFTER
CONVERTING CHARACTERS
FIRST

EXAMINE identifire TALLYING identifier-2 FOR ALL identifire-3
REPLACING LEADING
FIRST CHARACTERS

subha2010

  • Aug 10th, 2010
 

Inspect will inspect leading space and special characters ..Examine will check for spaces even in between statements.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions