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 / varatharaj

using read command fetch first record from the file1 and compare that record with all records if file2 if any match occur go to second record in file1 compare like this until end of first1 if anyone with out match we can find that is odd man out in files.....

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can read the file from bottom?

662


What is a SSRANGE and NOSSRANGE?

834


example for sub strings ? and refernce modifications whit output pls

1852


What are the cobol coding sheets?

673


Write some characteristics of cobol as means of business language.

628






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 ?

1882


Define static linking and dynamic linking.

672


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17067


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 ......

10662


What is the LINKAGE SECTION used in COBOL?

900


Have you used comp and comp-3 in your project? And how?

2014


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

665


How do you define a variable of comp-1 and comp-2?

709


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

834


what happens if parmparameter passes zero bytes to the program

1671