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 are the different types of VSAM files available?
Discuss record management in vsam?
What is the purpose of the FILE STATUS clause in the SELECT statement?
How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?
Explain the function of the relative record data set?
Alt key is used for what type of vsam file
what will happen if there is no secondary allocation made for datasets?
How do you fix the problem associated with VSAM out of space condition?
is it slower if you access a record through alternative index as compared to primary index?
Using Alternate Indexes in CICS pgms: ?
How did you refresh a VSAM file and how frequently you do it ?
3 Answers CSC, IBM, Patni, Xansa,
What is the device independent method to indicate where a record is stored?