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 do you reference the fixed unblock file formats from cobol programs
What is difference between static and dynamic call in cobol?
What is comp-1 and comp-2?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What is inspect in cobol ?
how to access the file from prodution from changeman tool and to submit a file to production
Discuss about changing dataset name in proc.
i need a small 3d program using inline and outline.
How do define dynamic array in cobol.
In COBOL, what is the different between index and subscript?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
How arrays can be defined in COBOL?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How do u write test cases?
In COBOL programming, what is PERFORM? What is VARYING?