why do u need inspect verb?

Answers were Sorted based on User's Feedback



why do u need inspect verb?..

Answer / sundar

Inspect verb is for counting, replacing and converting the
string.

Is This Answer Correct ?    21 Yes 1 No

why do u need inspect verb?..

Answer / uttam

INSPECT verb
The INSPECT verb can be used for two purposes.
1. Count the number of occurrences of a given character in
a field.
2. Replace specific occurrences of a given character with
another character.

Is This Answer Correct ?    9 Yes 0 No

why do u need inspect verb?..

Answer / adithya

1)inspect verb is used for counting repeated occurences and
storing repeated occurences in a variable.

2)we can replace character


3)we can count leading characters

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

Explain what you understand by passing by value.

0 Answers  


How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.

7 Answers   CGI, TCS,


How to read the last 100 records from a COBOL file. The file contains N number of records.

11 Answers   IBM,


What type of Call you would use if you don;t want the control back to the calling program?

8 Answers   TCS,


i am a btech cs 2009 passout. i am opting for mainframe course. is it good to do this course? pls. anyone suggest me

4 Answers  






what is dynamic array in cobol? what is the difference b/w array and table in cobol?

2 Answers  


can u give result for the fallowing example... 05 a pic 9(2) 05 b redifines a pic x(2). move 'xy' to b. display a,b.

10 Answers   IBM,


can we use go to statement inline-perform?

7 Answers   IBM,


1.Can we define condition-name conditions in FD entry.

11 Answers  


What is the point of the REPLACING option of a copy statement?

3 Answers  


What is the usage of comp fields in cobol?

0 Answers  


can internal sort be applied to sort ksds files?

1 Answers  


Categories