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:  Give example of Inspect TALLYING / BEFORE INTIAL / AFTER INITIAL. In which situation will use this in COBOL?

Answer: We have different type of Inspect verb
1.counting INSPECT.
2.replacing INSPECT.
3.combined INSPECT.
4.converting INSPECT.
Give example of any Inspect verb which you know.


October 10, 2008 00:26:01 #3
 dsmanikandan   Member Since: June 2008    Total Comments: 1 

RE: Give example of Inspect TALLYING / BEFORE INTIAL / AFTER INITIAL. In which situation will use this in COBOL?
 
Manikandan D

hi sarath your answer was correct but u made one minor mistake ,

for counting inspect

ex:
        var1 = 'abc tree pqrs leaf xyz'

       count1 = inspect var1 tallying count1 for all 's' before initial 'leaf' after initial 'tree'.

ans:
        count1 = 1.

     

 

Back To Question