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
What kind of error is trapped by on size error option?
What is the difference between next sentence and continue in cobol programing language?
How do define dynamic array in cobol.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What are the pertinent COBOL
Write a program to enter and display the names of students in a class using the occurs clause.
What is the difference between perform … with test after and perform … with test before?
What is the problem of ordered sequential files access?
How do you reference the following file formats from cobol programs?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is length is cobol?
What are the different types of condition in cobol and write their forms.
What are the different data types in cobol?
What is the difference between PIC 9.99 and PIC9v99?