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

how to submit a jcl by cobol program. clear me with an example.

3 Answers   HCL,


Can we access the a[0] in the array ?

6 Answers   DCL, IBM,


what r the types of perform statement

4 Answers  


Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


Define in-line perform?

1 Answers  






I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.

4 Answers   FIS, Wipro,


What are the different open modes available in cobol?

0 Answers  


what is the use of outrecord?

0 Answers  


Name the sections present in data division.

0 Answers  


1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max value for N?

11 Answers   Wipro,


How to increase the logical record length of existing PS file?

7 Answers  


period is missing in the cobol program which error we getting

5 Answers   TCS, Tesco,


Categories