GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 159 of 162    Print  
INSPECT and EXAMINE
What is the difference between INSPECT & EXAMINE?


  
Total Answers and Comments: 4 Last Update: September 11, 2009     Asked by: aratik 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: prasenjit_in
 
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 :)

Above answer was rated as good by the following members:
PAVANKOTA, Hemant borase
October 28, 2008 09:32:59   #1  
prasenjit_in Member Since: April 2008   Contribution: 18    

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

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 21, 2009 20:32:01   #2  
Rachell Member Since: July 2009   Contribution: 2    

RE: INSPECT and EXAMINE
INSPECT and EXAMINE are STRING verbs of COBOL.
wheres EXAMINE has been removed from later versions of COBOL.

 
Is this answer useful? Yes | No
August 14, 2009 04:21:53   #3  
masti.mainframe Member Since: August 2009   Contribution: 2    

RE: INSPECT and EXAMINE

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



 
Is this answer useful? Yes | No
September 03, 2009 06:13:50   #4  
masti.mainframe Member Since: August 2009   Contribution: 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

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape