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
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 |
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 |
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 |
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 |
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 |
give the examples for strings and unstrings in cobol
What are the different forms of EVALUATE statement?
how to refer the data field?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.
what is s013u000 for?
How to replace the GOTO statement in COBOL without changing the structure of program. e.g. consider following code... I.D. E.D. D.D. P.D. compute C = A + B. GOTO para 100-display. compute D = C - D. GOTO 200-display. some other logic...... ........ GOTO 300-para. ...... ...... GOTO 400-para. Now I want to replacce all GOTO statements without changing the structure and otput of program.
What are the ways you can generate a copybook?
WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH
Move Zeroes to I move 5 to j perform para1 varying I from 10 by -2 until I = 0 display j. para1. Add 5 to j. What’ll be the value after execution of display stmt. A) 35 B) 40 C) 30 D) 25 please explain how?
suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.