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

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

625


What is the main function of key sequenced data set in vsam?

525


what do you mean by recovery and speed parameters in define cluster command?

582


what are the additional information you should give in the dd statement while defining the next generation of a gdg?

576


What does the keyranges parameter in define cluster command do?

522






what how do you initialize a vsam file before any operation? A vsam with alternate index?

553


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

551


Using alternate indexes in cics program?

555


On which dataset you can have alt index?

501


Explain about the file objects in vsam?

608


What are the information stored in ci?

574


explain how many ways you can load data in a vsam cluster?

580


in a cobol select statement for a ksds can you tell me what are the 3 possibilities for access?

698


explain in brief what are the 3 types of vsam files?

628


What are the different versions of gdg named?

563