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..
Answers were Sorted based on User's Feedback
Answer / 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 |
what is freespace
there are seven idcams commands in vsam. Can you name and explain each of them?
How is record management performed in vsam?
What is an alternate index and path ?
Describe SHAREOPTIONS parameter (SHR) in Define Cluster command.?
what is meant by dirty read in vsam?
Would you specify freespace ce for an esds?
to use the rewrite command, how should the vsam file be opened?
what's the biggest disadvantage of using a VSAM dataset?
8 Answers Anjana, CTS, DSRC, IBM,
what do you mean by a upgrade set in vsam?
How can you create a VSAM dataset? Can you write a JCL for it?
Syntax of AMS modal commands ?