I have dataset DS1 which has records say
1
2
3
4
5
...
...
etc
And also I have second dataset DS2 whcih has records
1
3
4
5
6
8
..
...
Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.
Answer Posted / harsha
Use following JCL
//STEP010 EXEC PGM=ICETOOL
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//FILEIN DD DSN=XXXXXXXXXXXXXX,DISP=SHR
//TOOLIN DD *
SELECT FROM(FILEIN) TO(UNIQFL) -
ON(1,73,CH) NODUPS
SELECT FROM(FILEIN) TO(DUPFL) -
ON(1,73,CH) ALLDUPS
/*
//*
//DUPFL DD SYSOUT=*
//UNIQFL DD SYSOUT=*
//*
Label DUPFL will show all duplicate records
Label UNIQFL will show all unique records
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
) what is the difference between AID and HANDLE AID?
how do you reference the variable block file formats from cobol programs
What is the default value(s) for an initialize and what keyword allows for an override of the default?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is the Purpose of Pointer in the string?
Explain about different table spaces.
i need a small 3d program using inline and outline.
What are the different types of condition in cobol and write their forms.
What are the access modes of START statement?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
HOw can I get the negative sign while deduct high value from low value
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Write a program to explain size error.
Explain what you understand by passing by value.