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
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Can we redefine the field of x(200) to less than 200?
What are literals?
how do you reference the fixed unblock file formats from cobol programs
Write the code to count the sum of n natural numbers.
What is the difference between external and global variables in COBOL?
How arrays can be defined in COBOL?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What are the different rules to perform a Search?
What are declaratives and what are their uses in cobol?
What is length is cobol?
What is the usage of comp fields in cobol?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
Explain the configuration section of a cobol program with examples of syntax.