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
Define static linking and dynamic linking.
What is the difference between next sentence and continue in cobol programing language?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the difference between goback, stop run and exit program in cobol?
i need a small 3d program using inline and outline.
how do you reference the esds vsam file formats from cobol programs
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
what is difference between cobol and cobol/400
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Whats the difference between search & search ALL?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is Pic 9v99 Indicates in COBOL?
how do you reference the variable unblock file formats from cobol programs
What is perform what is varying?