Read filea And file b write the same records in both files?
Records in a but not in b record in b but not in a
Answer Posted / ravi
JOB INPUT (INFILE1 KEY (INFIL1-ID) +
INFILE2 KEY (INFIL2-ID))
IF MATCHED
PUT OUTFILE1
ELSE
IF INFILE2
OUT1-REC = INFIL1-REC
PUT OUTFILE2
ELSE
OUT1-REC = INFIL2-REC
PUT OUTFILE2
END-IF
END-IF
.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Name the divisions, which are available in a cobol program?
What the difference is between continue and next sentence?
Can you please let me know the centre name of INS certification in Kolkata.
How many bytes S(8) comp field occupy and its maximum value?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
) How do u handle errors in BMS macro
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
How can you get the ksds file records into your cobol program?
how to refer the data field?
How you can characterize tables in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol?