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 convert flat files to VSAM files ?
How many buffers are allotted to VSAM KSDS and ESDS?
What is IDCAMS? and what is the purpose of it?
How do you calculate record size of an alternate cluster?
What is a ca split?
what is difference between repro and export? if any one know this plz tell me
What is the maximum number of Alternate Index ???
in a cobol select statement, can you tell what is the organization for a ksds?
what is meant by BUFND & BUFNI..?
can any one tell "in esds in what structure records will stored?"
Is CA(Control Area) is part of CI(Control Interval)
how to see the last records in vsam dataset??