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
in a cobol select statement, can you tell what is the organization for a ksds?
What is the main function of key sequenced data set in vsam?
what do you mean by recovery and speed parameters in define cluster command?
what are the additional information you should give in the dd statement while defining the next generation of a gdg?
What does the keyranges parameter in define cluster command do?
what how do you initialize a vsam file before any operation? A vsam with alternate index?
How does control intervals and control areas related to each other?
Using alternate indexes in cics program?
On which dataset you can have alt index?
Explain about the file objects in vsam?
What are the information stored in ci?
explain how many ways you can load data in a vsam cluster?
in a cobol select statement for a ksds can you tell me what are the 3 possibilities for access?
explain in brief what are the 3 types of vsam files?
What are the different versions of gdg named?