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 |
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
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
How do you get the data to code the BMS macro?
i WANT ALL ERROR codes IN CICS and DB2
What is the difference between a subscript and an index in a table definition?
What is SET TO TRUE all about, anyway?
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
A s9(4). B v9(4) value 0.21 can i move this?
Have you code any new programs in COBOL ? What is the functionality of the programs?
What is the LINKAGE SECTION used for?
Can JUSTIFIED be used for all the data types?