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 the purpose of control intervals in vsam?

1008


what do you mean by a shareoptions parameter (shr) in define cluster command?

1302


what parameter in the define aix option is used to determine the maximum number of duplicate keys allowable ?

1003


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

1105


what is the meaning of dynamic processing in vsam?

1041


How is the sorting of vsam files carried?

1117


write a program to read from a VSAM file , there will be a 5 records to create name. empno. resignation and address to update in a db2 table and call another program using dynamic call to find the matching fields in program 1 to update in db2 table. anybody pls send de program for dis ? thanks in advance...

2733


how do you define an altindx ? How do you use altindxs in batch, cics programs?

1067


what are the codes returned by the ams (access method services) command during the execution in vsam?

1286


in a cobol select statement, can you tell what is the organization for a ksds?

1110


what will happen if there is no secondary allocation made for datasets?

1109


Define free space?

1048


What is the use of access method services in vsam?

1051


Tell about the ams used in vsam?

1172


Explain the difference between lds and esds?

1030