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 information stored in ci?
what do you mean by the repro command?
What is the use of access method services in vsam?
What is the difference between lds and esds?
can you specify some the distinctive features of a ksds, key sequenced dataset?
What are the building blocks used in vsam datasets?
Define a path?
What are the different versions of gdg named?
Would you specify freespace ce for an esds?
What are the access method services used in vsam?
What is a ci split?
how many buffers are allocated to vsam ksds and esds?
What is the purpose of control intervals in vsam?
how do you define an altindx ? How do you use altindxs in batch, cics programs?
explain in brief how are different versions of gdg named?