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 are the additional information you should give in the dd statement while defining the next generation of a gdg?
Can you delete vsam files with the delete option of the disposition parameter of jcl?
Define a path?
Describe the uses of ams?
Define dynamic processing?
what is a base cluster in vsam?
is delete operation supported in an esds? Is rewrite operation possible in esds?
Is it slower if you access a record through alt index as compared to primary index?
differentiate between sequential files and esds files in vsam?
How is record management performed in vsam?
what is the purpose of the verify function of idcams?
What are the common vsam error conditions and codes?
how many buffers are allocated to vsam ksds and esds?
What is speed parameters in define cluster command?
What is the main function of linear dataset?