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..
Answer Posted / 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 |
Post New Answer View All Answers
what is meant by dirty read in vsam?
Explain the purpose of the file status clause in the select statement?
if you wish to use the rewrite command how must the vsam file be opened?
how can you load a vsam data set with records ?
is delete operation supported in an esds? Is rewrite operation possible in esds?
What are the advantages of vsam over isam?
explain in brief how are different versions of gdg named?
What is the main function of key sequenced data set in vsam?
What are the different commands used in idcams for vsam?
Describe the uses of ams?
What is the use of KSDS,LDS,ESDS,RRDS??what is VRRDS?? How are all these useful in realtime scenario??Plz helpme out...Its a recent question in IGATE..
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
What is the purpose of idcams?
Tell about the ams used in vsam?
How do you define an altindx?