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 are the additional information you should give in the dd statement while defining the next generation of a gdg?

1049


Can you delete vsam files with the delete option of the disposition parameter of jcl?

1171


Define a path?

1142


Describe the uses of ams?

1057


Define dynamic processing?

1062


what is a base cluster in vsam?

1182


is delete operation supported in an esds? Is rewrite operation possible in esds?

1157


Is it slower if you access a record through alt index as compared to primary index?

1076


differentiate between sequential files and esds files in vsam?

1236


How is record management performed in vsam?

1217


what is the purpose of the verify function of idcams?

1103


What are the common vsam error conditions and codes?

1120


how many buffers are allocated to vsam ksds and esds?

1209


What is speed parameters in define cluster command?

1110


What is the main function of linear dataset?

1146