Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between perform … with test after and perform … with test before?

1437


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.

2428


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2468


) how do u code after getting data?

2148


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9867


how to move the records from file to array table. give with code example

2671


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1077


In COBOL, what is the different between index and subscript?

1243


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 ......

12363


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)?

1111


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1111


How do you get the data to code the BMS macro?

1963


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1163


What is the difference between binary search and sequential search?

1084


How to know whether the module is dynamical or statistical?

1133