What is the difference between SEARCH and SEARCH ALL? What
is more efficient?
Answer Posted / kumar raja.
SEARCH ALL is an efficient one then why we need SEARCH ?
ONE EXAMPLE.
In VSAM files by passing the partial key we can search the
record using SEARCH or AEARCH ALL
But if you would like to point out 1st record with this
partial key, SEARCH will find the 1st record with that
partial key.
And SEARCH ALL will not. (95%)
Example. (Here my target to get 1st record with the
partial key. i.e (200 300 XXXXXXA)
VSAM File. (assume KEY as : ORG LOGO ACCOUNT) and
partial KEY (ORG = 200 LOGO = 300)
ORG LOGO ACCOUNT
100 222 XXXXXXXXX
100 333 XXXXX
111 333 XXXXXXX
200 300 XXXXXXA
200 300 XXXXXXB
200 300 XXXXC
200 300 XXXXXXD
250 300 XXXXXXX
300 340 XXXXXXX
In the case of search the O/P will be (200 300 XXXXXA)
Correct as per the requirement.
But in case of SEARCH ALL the response will be (200 300
XXXXXB). Wrong as per the requirement.
Regards,
Kumar Raja.
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What is the difference between external and global variables in COBOL?
What is the local-storage section?
Write a program to enter and display the names of students in a class using the occurs clause.
What is the difference between next sentence and continue in cobol programing language?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
example for sub strings ? and refernce modifications whit output pls
How to use the same COBOL program in Batch and CICS on lines? explain with an example
i need a small 3d program using inline and outline.
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the difference between perform … with test after and perform … with test before?
What is rmode(24)
what is search and searchall?what is the diffrence between them?give an best example?
What is the difference between PIC 9.99 and PIC9v99?