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 / ram g
we can achieve this through jcl icetool utility..
but in cobol its not that easy but possible...
consider the scenario...
file 1 file2
5 2
4 1
6 9
1 4
considering this flat seq file:
here the files are not sorted in order and need not be..
so we should take first record from file1 and match with
all the four records in file2 it should continue for end of
file and do the same for file2. can use array logic.
sorting logic in cobol wont be useful here..
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
i want a program using by if, evaluate , string, unstring, perform, occurs?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are the pertinent COBOL commands?
IF I mention stop run in CICS what happens?
Write a program to enter and display the names of students in a class using the occurs clause.
What are different data types in cobol?
How can you get the ksds file records into your cobol program?
Explain about different table spaces.
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Can we change the password using ALTER? anyone tried and changed?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
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)?
What is the difference between PIC 9.99 and 9v99 in COBOL?
In COBOL, what is the different between index and subscript?