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
What is the difference between perform … with test after and perform … with test before?
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.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
) how do u code after getting data?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
how to move the records from file to array table. give with code example
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
In COBOL, what is the different between index and subscript?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
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 Structured COBOL Programming and Object Oriented COBOL programming?
How do you get the data to code the BMS macro?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the difference between binary search and sequential search?
How to know whether the module is dynamical or statistical?