I have the requirement to compare the two files and pick up
the matching records.
File 1. file2
23 32
32 13
34 15
35 36
36 35
43
Get the matching records from this 2 files to out file. how
you will do this in cobol program?
Answer Posted / siri
IN COBOL
IF FILE1>FILE2
READ FILE2
IF FILE1<FILE2
READ FILE1
IF FILE1=FILE2
WRITE FILE3
READ FILE1
READ FILE2.......
IN JCL
//XSUM DD DSN=XSUM.MATCH
//SYSIN DD *
SORT FIELDS=COPY
SUM FIELDS=NONE,XSUM
/*
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
example for sub strings ? and refernce modifications whit output pls
What is cobol?
What are the cobol coding sheets?
What is link edit in cobol?
how to move the records from file to array table. give with code example
how do you reference the variable unblock file formats from cobol programs
Write down the divisions of cobol program?
Which division and paragraphs are mandatory for a COBOL program?
What is the difference between comp and comp-3?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Can you please let me know the centre name of INS certification in Kolkata.
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is amode(31)