Answer Posted / sumankumar
IT MEANS DATA SPLIT INTO 2 HALFS AND COMPARE FIRST HALF LAST
VALUE AND SECOND HALF FIRST VALUE WITH GIVEN DATA THEN
ELIMINATE HALF OF THE DATA AND AGAIN SPLIT INTO NEXT 2 HALFS
THIS PROCCESS WILL BE CONTINUED STILL VALUE IS IDENTIFIED
LET ME KNOW ONE EX:
PROGRAM: CONSIDER 1,2,3,4,5,6,7,8,9,10.
SET I TO 2
SEARCH ALL DATA
AT END DISPLY " EOT"
WHEN DATA(I)= 4
END-SEARCH ALL
SOL: THE DATA DIVIDE INTO 2 HALFS 1 TO 4, 5 TO 10 U R
REQUIREMENT IS SERCH AT POSITION OF 4 SO IT COMPARE FIRST
HALFS OF LAST VALUE i'e 4 AND SECOND HALFS OF FIRST VALUE
i'e 5 AND ELIMINATE THE HALF OF DATA AND AGAIN SPLIT IT INTO
NEXET 2 HALFS THIS PROCCESS WILL BE CONTINUED STILL VALUE IS
IDENTIFIED
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
how do you reference the esds vsam file formats from cobol programs
How to remove 2 duplicate records and copy only one using job control language?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How can you get the ksds file records into your cobol program?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is the difference between next sentence and continue in cobol programing language?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Write the code to count the sum of n natural numbers.
What are the various section in data division and briefly explain them.
In COBOL, what is the different between index and subscript?
What are the different rules to perform a Search?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Whats the difference between search & search ALL?
What is the difference between PIC 9.99 and PIC9v99?