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 an alternate index?
what is freespace
How do I declare the KSDS vsam so that I can store a reocrd with variable length?.
what is the meaning of each of the values in shareopts(2 3)?
When CISZ is declared as 4096 at cluster level,is this true that data will have 4096 and index will have default?????
What are the three levels of definition for the VSAM DEFINE?
What is a VSAM split?
How to rename one vsam file as well as it's index?
what is control interval(CI) and control Area(CA)
Do all versions of the GDG have to be of the same record length ?
What are the information stored in ci?
Differentiate between control interval (ci) and control area (ca)?