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
how to move the records from file to array table. give with code example
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
In which area will you utilize 88 level items in cobol?
How are the next sentence and continue different from each other?
How to print 10 to 1 if the input have only 10 digit number?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Define cobol?
What are the different rules to perform a Search?
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?
What is amode(24)?
What are the different types of condition in cobol and write their forms.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Mention the guidelines to write a structured cobol program?
What are the various section in data division and briefly explain them.
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?