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

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PARA-X MOVE 5 TO N how many times PARA-X willbe exicuted? a.10 b.5 c.infinate d.execution error

6 Answers   ABCL, TCS,


COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error

1 Answers   TCS,


how we rectify soc4 and soc7 error in project(need real time answer)? please reply

3 Answers   HCL, Wipro,


What is inspect in cobol ?

0 Answers   Infosys,


What is difference between comp & comp-4?

6 Answers  






Define cobol?

0 Answers  


) How do u handle errors in BMS macro?

0 Answers   IBM,


WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED, FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFINED. WHAT IS THE DIFFERENCE AMONG ALL AND WHICH TYPE OF FORMAT SHOULD BE USED WHEN

3 Answers   Infosys,


We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)

1 Answers   Cap Gemini,


What is the Purpose of POINTER Phrase in STRING command in COBOL?

0 Answers   Winsol Solutions,


i have a variable block which is used in my cobol program as input file having records of 4080 after compilation while runing the program im getiing file attribut mismatch and it is saying tht the record length of the file is 4084 can any one knw the answer how to reslove it ?

2 Answers  


What is the difference between binary search and sequential search?

0 Answers  


Categories