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

How you can characterize tables in cobol?

0 Answers  


Have you used comp and comp-3 in your project? And how?

0 Answers   IBM,


In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.

1 Answers   CSC,


How to read a 100 record from a file through cobol?

2 Answers  


What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I am going to Display the WS-VARX and WS- VARN?

6 Answers   Xansa,


File status must be checked both while opening and reading the file or only while reading the file?

2 Answers  


What is file status 39 ?

10 Answers   JPMorgan Chase,


Discuss about changing dataset name in proc.

0 Answers  


Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you

1 Answers   BPL,


What compiler option would you use for dynamic linking?

2 Answers  


Write a program that uses move corresponding.

0 Answers  


How to delete the records of a dataset through cobol programme?We should not use jcl utilitities like IDCAMS.

2 Answers  


Categories