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
What is speed parameters in define cluster command?
How does control intervals and control areas related to each other?
What is the purpose of idcams?
why ci and ca splits are not possible in esds and rrds?
What is a lds (linear data set) and what is it used for?
What are the advantages of vsam over isam?
How is the sorting of vsam files carried?
how can you load a vsam data set with records ?
Tell about the ams used in vsam?
explain how can you initialize a vsam file before any operation?
What are the different commands used in idcams for vsam?
if you wish to use the rewrite command how must the vsam file be opened?
What is the purpose of control intervals in vsam?
Define base cluster?
we can define the ksds cluster by two ways by using the file-aid or by using the idcams utility. Explain them.