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


Please Help Members By Posting Answers For Below Questions

Explain the catalog?

566


How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?

583


Define gdg?

561


How to get the last record in vsam file in cluster?

572


What is a base cluste?

601






we can define the ksds cluster by two ways by using the file-aid or by using the idcams utility. Explain them.

728


what parameter in the define aix option is used to determine the maximum number of duplicate keys allowable ?

568


Would you specify freespace ce for an esds?

600


what is meant by s0c-07 system abend codes?

567


what is meant by dirty read in vsam?

840


What are the different commands used in idcams for vsam?

559


What are the different versions of gdg named?

563


What is the function of entry sequenced data set?

648


What are the access method services used in vsam?

596


What is the biggest disadvantage of using a vsam dataset?

605