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 / rookie
I suppose the question is a bit confusing....DB2 deals in
table's and has records...
Open VSAM file and read the records into WS variables,
Fetch DB2 records in host variables
Now write them to file V2.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
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 are the idcams commands that can be used for vsam and explain each of them.
what is meant by s0c-07 system abend codes?
Differentiate between ci split and ca split?
we can define the ksds cluster by two ways by using the file-aid or by using the idcams utility. Explain them.
Under idcams, multiple functions can be executed, each of which returns a condition code. What will be the condition code returned to the operating system?
What are the information stored in ci?
Can you delete vsam files with the delete option of the disposition parameter of jcl?
State the differences between vsam and non-vsam files?
What are the different parameters that are used in vsam?
how do you create an alternate index ?
Why is master catalog used in vsam?
In a KSDS file, key is missing for one record. How to insert the key for that particular record from back up file. Is there any sorting needed for the back up file before the key insertion?
what is the probability of a complete system distortion under high end low performing multiprocessor job?
What is recovery parameters in define cluster command?