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 |
how do you create an alternate index ?
What's a LDS (Linear Data Set) and what's it used for?
Can we copy Vsam files from a Vsam file in Iebgener step?
4 Answers iGate, Tech Mahindra,
explain in brief how you can create a vsam file?
What is the VSAM-code field?
what is difference between repro and export? if any one know this plz tell me
OPEN INPUT StudentFile READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ PERFORM UNTIL EndOfStudentFile DISPLAY StudentId SPACE StudentName SPACE CourseCode SPACE YOBirth READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ END-PERFORM CLOSE StudentFile STOP RUN what will be output
Explain the biggest disadvantage of using a vsam dataset?
What is the function of entry sequenced data set?
What is File Status in VSAM?
how to view clusters that has more than 10000 records
what is the meaning of dynamic processing in vsam?