Page 1 of 1

Multiple VSAM update in single COBOL programe

PostPosted: Sat Jan 07, 2012 7:41 pm
by ankur0092006
Hi,

My requirement is that, I have to read a flat file, search for a value in a table, then open a VSAM file corresponding to the value fetch from the table.. This VSAM file needs to be read and another VSAM file needs to be updated with records read from previous VSAM.

For Example: My flat file has AAAAA value, I searched the table using this value and found BB value, then I open VSAM file corresponding to BB value, read it and then update CC VSAM file.

My flat file has 1000 records and each record has a new VSAM file to be read and updated.

Thanks,
Ankur

Re: Multiple VSAM update in single COBOL programe

PostPosted: Sat Jan 07, 2012 7:46 pm
by Akatsukami
What kind of VSAM data set? ESDS, RRDS, KSDS, LDS, LS/MFT?

Re: Multiple VSAM update in single COBOL programe

PostPosted: Sat Jan 07, 2012 7:47 pm
by ankur0092006
KSDS

Re: Multiple VSAM update in single COBOL programe

PostPosted: Sat Jan 07, 2012 9:15 pm
by NicC
So what is the problem? How do you think you should go about this task?

Re: Multiple VSAM update in single COBOL programe

PostPosted: Sat Jan 07, 2012 9:27 pm
by Robert Sample
ankur0092006, since you posed no questions and apparently have no issues with your requirements, what do you want us to say? Congratulations and good luck with your program? I noticed you said 1000 flat file records -- how many possible different VSAM files?