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


Please Help Members By Posting Answers For Below Questions

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

1174


Can we redefine the field of x(200) to less than 200?

1429


What are literals?

1183


how do you reference the fixed unblock file formats from cobol programs

1305


Write the code to count the sum of n natural numbers.

1256


What is the difference between external and global variables in COBOL?

1539


How arrays can be defined in COBOL?

1298


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.

2474


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1147


What are the different rules to perform a Search?

1139


What are declaratives and what are their uses in cobol?

1256


What is length is cobol?

1154


What is the usage of comp fields in cobol?

1222


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

1293


Explain the configuration section of a cobol program with examples of syntax.

1257