how can you identify wheather the program is using search
or search all in the cobol program?

Answers were Sorted based on User's Feedback



how can you identify wheather the program is using search or search all in the cobol program?..

Answer / y@$w@nth

The identification will be depend on many ways

The following are some ways:

1.first thing is that we can see the keywords like SEARCH or
SEARCH ALL

2.Second thing is that the array type(single dimension or
multidimension) that is followed by
SEARCH(multidimension/single dimension) or SEARCH ALL(only
single dimension) keyword.

3.third thing is that what are the relational operators we
used (multiple relational operators can be used in SEARCH
like AND OR etc... but in case of SEARCH ALL Only =
relational operator is allowed )

4.And the fourth one is that(only one when condition will be
used in SEARCH ALL. multiple WHEN conditions can be used in
SEARCH)

Let me know if any other..........
Y@$W@nth....
Cheers...

Is This Answer Correct ?    13 Yes 1 No

how can you identify wheather the program is using search or search all in the cobol program?..

Answer / abhi

i would like to add one more that is in search all array
should be in ascending or descending order but in search its
not necessary.

Is This Answer Correct ?    4 Yes 0 No

how can you identify wheather the program is using search or search all in the cobol program?..

Answer / krishnachaitanya

when we declare table ocuurs clause we give one key either
accending or descending key for binary search means we use
ordered data in that we use seachall key word here we get
only one record no duplicate.

Is This Answer Correct ?    2 Yes 0 No

how can you identify wheather the program is using search or search all in the cobol program?..

Answer / ravikrian

while using search the data may be in any order, wher as in
search all the data must be in sorted order and there should
not be any duplicates in the data.

Is This Answer Correct ?    0 Yes 0 No

how can you identify wheather the program is using search or search all in the cobol program?..

Answer / vaneesh khurana

In addition to above, it is required to provide index some
value using SET.

SET IDX to 1.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

why occurs clause not mentioned in 01 level

6 Answers   HCL, NIIT, TCS, Tesco,


What is CALL statement in COBOL?

4 Answers  


What is "Call by content" and "call by reference"?

4 Answers   ADP, Syntel,


what is the minimum number of lines a Cobol program should have to successfully compile and run

11 Answers   ABC, Societe Generale,


example for sub strings ? and refernce modifications whit output pls

0 Answers   College School Exams Tests, IBM,






wht is packed decimal in cobol

2 Answers  


In COBOL, what is the different between index and subscript?

0 Answers   TryTechnicals Pvt Ltd,


What is the difference between write & move in COBOL?

3 Answers   CSC, HHB,


what are the control characters used in reports

1 Answers  


in real time what is the suitable exp where in-stream procedure is better then catalog procedure.

1 Answers  


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

0 Answers  


In the JCL, how do you define the files referred to in a subroutine ?

2 Answers  


Categories