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 / prasanna kumar

We can do this by external SORT in JCL
//SORTIN DD DSN=ABC.FILE1 ( that contains of 100 records)
// DD DSN=ABC.FILE2 ( that contains of 101 records)
//SORTOUT DD DSN=ABC.NEWFILE
//SYSIN DD *
SORT FIELDS =(1,4,CH,A) (jst to retreive data in sequence)
SUM FIELDS = NONE ( That eliminates the duplicates and
retrieves the data which is odd in both the files and write
in sort out file)
/*

Any other answers !!!

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1964


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

637


how do you reference the esds vsam file formats from cobol programs

638


What are the access modes of START statement?

726


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

861






What is the difference between Global and External Variables?

673


How many sections are there in data division in COBOL?

684


What is the local-storage section?

689


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1600


Why did you choose to work with ibm mainframe cobol programming?

633


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1935


How do we get current date from system with century in COBOL?

811


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1935


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

699


What rules are followed by the search verb.

642