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

Answers were Sorted based on User's Feedback



The first VSAM file V1 has 2 fields A and B . There is a DB2 file which has fields E and f. We nee..

Answer / rookie

I suppose the question is a bit confusing....DB2 deals in
table's and has records...

Open VSAM file and read the records into WS variables,
Fetch DB2 records in host variables
Now write them to file V2.

Is This Answer Correct ?    2 Yes 0 No

The first VSAM file V1 has 2 fields A and B . There is a DB2 file which has fields E and f. We nee..

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

More VSAM Interview Questions

What is an alternate index?

1 Answers  


what is freespace

2 Answers   EDS,


How do I declare the KSDS vsam so that I can store a reocrd with variable length?.

2 Answers  


what is the meaning of each of the values in shareopts(2 3)?

0 Answers   IBM,


When CISZ is declared as 4096 at cluster level,is this true that data will have 4096 and index will have default?????

1 Answers   Wipro,


What are the three levels of definition for the VSAM DEFINE?

2 Answers   IBM,


What is a VSAM split?

2 Answers  


How to rename one vsam file as well as it's index?

4 Answers   BEA,


what is control interval(CI) and control Area(CA)

4 Answers   EDS,


Do all versions of the GDG have to be of the same record length ?

3 Answers   IBM, iNautix,


What are the information stored in ci?

0 Answers  


Differentiate between control interval (ci) and control area (ca)?

0 Answers  


Categories