Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

can internal sort be applied to sort ksds files?

1 Answers  


Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working storage section for a data name?

3 Answers  


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

0 Answers  


What will happen if we generate GDG (+2) version without generating (+1) version?

2 Answers   IBM, T systems,


The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it

3 Answers   ADP,


what is call by value and call by reference ?

3 Answers   Infosys, ITC Indian Tobacco Company,


What is EIBCALEN? Why it is used?

9 Answers   ADP,


how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?

2 Answers  


Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through a-exit next sentence else if b=c perform c-test through c-exit. if a=d perform d-test through d-exit. a-test. -- -- a-exit. exit. can u tell me what will happen if a=b after looping into a-exit will the control go back to a- test1. will the condition a=d be checked???

5 Answers   IBM,


Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS

2 Answers  


In an EVALUTE statement is the order of the WHEN clauses significant?

4 Answers  


How can I find the maximum value of a field in a file while reading the file dynamically? without using sort function. Suppose i have a file with fields Timestamp, description, teamname, teamnumber.. i have read the file till end and find the maximun value of timestamp which is not in sorted order.. can we use function max(timestamp)?

1 Answers   CGI,


Categories