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
What is the difference between comp and comp-3 usage?
A table has two indexes defined. Which one will be used by the SEARCH?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
how do you reference the rrds file formats from cobol programs
Write a cobol program making use of the redefine clause.
Explain what you understand by passing by value.
How do define dynamic array in cobol.
Why did you choose to work with ibm mainframe cobol programming?
How arrays can be defined in COBOL?
i want a program using by if, evaluate , string, unstring, perform, occurs?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
how do you define single dimensional array and multidimensional array in your cobol?
What are the pertinent COBOL commands?
what are decleratives in cobol?