GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL

 Print  |  
Question:  INSPECT and EXAMINE

Answer: What is the difference between INSPECT & EXAMINE?


September 09, 2009 06:13:50 #4
 masti.mainframe   Member Since: August 2009    Total Comments: 2 

RE: INSPECT and EXAMINE
 
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
     

 

Back To Question