If there are two files one with 100 records and other with
101 records. we have to find out the one record that is the
odd man out . What are the steps to do it
Answer Posted / rajendran
Append 1 to the first file to the first position
Append 2 to the second file to the first position
Now SORT both the file records with option to sum on the
1st character.
at last the odd man record will be the one whose first
character would be "2" for all other it will be "3".
Please let me know if I went wrong somewhere.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
Discuss about changing dataset name in proc.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is rmode(24)
what happens if parmparameter passes zero bytes to the program
HOw can I get the negative sign while deduct high value from low value
how can i see junk values in dclgen or in hostvariable of comp ?
Which Search verb is equivalent to PERFORM…VARYING?
What is the difference between Call and a Link?
Write a program to explain size error.
What is the Purpose of Pointer in the string?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Why would you use find and get rather than to obtain?