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 a cluster?
In vsam at the cluster creation for KSDS FREESPACE parameter is required but for ESDS FREESPACE parameter is not required ?
explain in brief why do vsam take more disk space than other utilities?
what are s0c1, s0c4, s0c5, s0c7 abends?
What is FREESPACE ?
in vsam at the creation of cluster what is the use of RECSZ parameter?
How is the sorting of vsam files carried?
What is the main function of key-sequenced data set?
What is a ca split?
How many Alternate Indexes you can have on a dataset?
What are the optional parameters to the input dataset While loading the empty cluster with the data records?
Suppose a generation of GDG gets created in a particular step of a proc. How would you refer the current generation in a subsequent step? What would be the disposition of this generation now ?