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
What is perform what is varying?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What do you understand by psb and acb?
what is the difference between COBOL2 AND COBOL390?
how do you reference the printer file formats from cobol programs
What is the difference between external and global variables in COBOL?
What are declaratives and what are their uses in cobol?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is rmode(any) ?
What is the difference between goback, stop run and exit program in cobol?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is the difference between Global and External Variables?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is difference between static and dynamic call in cobol?
Define static linking and dynamic linking.