Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Hai

I have a VSAM file and there are two CICS pgms A and B both
intends to update the file. How to code the program so that
it does not under go a dead lock situation.

Answer Posted / pramod

This can be done by pairing read/update and rewrite command. If record is read for update(read/update) then it must be rewritten, if after read/update record is not required to rewrite then it must be unlocked using unlock command.
One more cause is for deadlock is double update in pseudo-conversational program and this can avoided by coding a update identifier field.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the cursor position when we receive a map?

1082


Explain the difference between using the read command with into option and set option?

1026


Let us say you have a collection of multiple maps in cics. So if you are asked to determine the exact storage space that is available in a symbolicmap, then how will you compute it?

1136


What are some of the cics commands associated with interval control?

1041


In a particular cics program, what is the procedure to allocate dynamic memory?

1163


What are the cics tables?

1086


Explain the function of the cics translator?

1042


What is the eib parameter?

1057


How can you use dynamic calls in cics?

1056


Db2 what is the difference between a package and a plan. How does one bind 2 versions of a cics transaction with the same module name in two different cicsregions that share the same db2 subsystem?

1129


how can you prevent more than one user from accessing the same transient data queue?

1090


What is interval control?

1135


Explain the difference between temporary storage queue (tsq) and transient data quene (tdq)?

997


What is the difference between SEND MAP DATAONLY and SEND MAP MAPONLY ?

1250


Particular area has been affected in cics screen, what is the process to find?

9893