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

The first VSAM file V1 has 2 fields A and B . There is a
DB2 file which has fields E and f. We need the fields A,
B , E and F to another VSAM file called V2. Kindly mention
the logic in procedure division in cobol..

Answer Posted / anoop

One methode is we can first repro the VSAM file into
sequential file and then SORT it into another sequential
file to include only A and B fileds. Then repro it again
into the VSAM file V2.

In cobol open this file in I-O mode and read it sequentialy
and move A & B fileds to a working storage variable.

Read the field E & F from data base and A & B from the
working storage and populate into the V2 VSAM file.

There could be some changes in the logic as per the exact
requirement.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is speed parameters in define cluster command?

1039


How does control intervals and control areas related to each other?

1007


What is the purpose of idcams?

1049


why ci and ca splits are not possible in esds and rrds?

1161


What is a lds (linear data set) and what is it used for?

1011


What are the advantages of vsam over isam?

1135


How is the sorting of vsam files carried?

1126


how can you load a vsam data set with records ?

1162


Tell about the ams used in vsam?

1178


explain how can you initialize a vsam file before any operation?

1101


What are the different commands used in idcams for vsam?

1065


if you wish to use the rewrite command how must the vsam file be opened?

1154


What is the purpose of control intervals in vsam?

1010


Define base cluster?

1014


we can define the ksds cluster by two ways by using the file-aid or by using the idcams utility. Explain them.

1328