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

In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?

1 Answers   CSC,


what happens of we dont give time stamp in precompilation process

2 Answers  


What are all the divisions of a COBOL program?

0 Answers  


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length

3 Answers   TCS,


What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.

3 Answers   IBM, Xansa,






I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?

6 Answers   IBM,


What is difference between COBOL and VS COBOL II?.

1 Answers   Winsol Solutions,


In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference

3 Answers   IBM,


What is a report item?

0 Answers  


How many bytes will be allocated for the following record description entries? 01 REC-A. 05 A PIC S9(4). 05 B PIC XXXBXXX. 05 C PIC ____9.99. 05 D PIC S9(5) COMP-3. 05 E PIC 9(3) COMP.

16 Answers   IBM, TCS,


What is a SSRANGE and NOSSRANGE?

0 Answers  


What are various search techniques in cobol? Explain.

0 Answers  


Categories