Multiple VSAM update in single COBOL programe



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Multiple VSAM update in single COBOL programe

Postby ankur0092006 » Sat Jan 07, 2012 7:41 pm

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
ankur0092006
 
Posts: 2
Joined: Mon Dec 19, 2011 9:42 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Multiple VSAM update in single COBOL programe

Postby Akatsukami » Sat Jan 07, 2012 7:46 pm

What kind of VSAM data set? ESDS, RRDS, KSDS, LDS, LS/MFT?
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Multiple VSAM update in single COBOL programe

Postby ankur0092006 » Sat Jan 07, 2012 7:47 pm

KSDS
ankur0092006
 
Posts: 2
Joined: Mon Dec 19, 2011 9:42 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Multiple VSAM update in single COBOL programe

Postby NicC » Sat Jan 07, 2012 9:15 pm

So what is the problem? How do you think you should go about this task?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Multiple VSAM update in single COBOL programe

Postby Robert Sample » Sat Jan 07, 2012 9:27 pm

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?
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post