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
Define cobol?
What is the use of intialize verb?
What the difference is between continue and next sentence?
Whats the difference between search & search ALL?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
how to move the records from file to array table. give with code example
What are declaratives and what are their uses in cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Discuss about changing dataset name in proc.
What are the different data types in cobol?
how do you reference the variable unblock file formats from cobol programs
What is the problem of ordered sequential files access?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Which Search verb is equivalent to PERFORM…VARYING?