Whats the difference between search & search ALL?
Answers were Sorted based on User's Feedback
Answer / sushant kumar mohanty
Search : Sequential Search.
Table should have INDEX.
Table need not be in SORTED order.
Search ALL : Binary Search.
Table should have INDEX.
Table should be in sorted order of the searching
argument. There should be ASCENDING/DESENDING
Clause.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / rajvee
search needs the index to be set before use..search all
doesnt need it.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rajvee
Search is Sequential Serach whereas Search All is Binary
Search.
Search needs the index key for the array whereas Search All
doesnt need it.
Search All is ideal for searching huge volume of data else
Search is easier.
| Is This Answer Correct ? | 0 Yes | 1 No |
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
01 a pic 9(3) value is 123 01 b pic 9(6) move a to b wht will be the value ? and 01 a pic x(6) value is abc 01 b pic x(3) move a to b wht will be the value ?
What is SET TO TRUE all about, anyway?
what is the difference between perform varying and perform until
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
consider the following two IF statements: IF X AND NOT Y MOVE A TO B IF Z=1 OR 9 MOVE A TO B select one of the following data divusion entries which gives identical results for both the above IF statements a.01 Z PIC 9 88 X VALUE 1.9 88 Y VALUE 0.2 THRU 8 b.01 Z PIC 9 88 X VALUE 0.2 THRU 8 Y VALUE 1.9 c.01 Z PIC 9 88 X VALUE 1.9 88 NOT-Y VALUE 0.2 THRU 1.9 d.none of yhe above
What are the various section in data division and briefly explain them.
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
i need the code for this program in cobol. 2 + 1 = 3 4+3=7 6+5=11 8+7=15 10+9=19
What will happen if we try to create GDG (+2) generaton instead of (+1) generation?
I have a sequential file. How do I access a record in this sequential file randomly in my program ?