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

What is interval control?

778


Explain how to build up lu 6.2 communication?

785


Explain 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 cics regions that share the same db2 subsystem?

786


what are the differences between temporary storage queue (tsq) and transient data quene (tdq)?

951


What is the tcp in the cisc?

821


Explain the difference between dfhcommarea and tsq?

751


How to handle exceptional conditions in cics?

852


when an apllication is invoked via the exec cics start command with the from option, how does the application gain access to the common area?

861


Highlight the difference between a symbolic map and physical map?

810


Can you define temporary storage?

895


Explain what is a cursor in cics sql processing?

779


Explain the difference between getting the system time with eibtime and asktime command?

822


Explain the difference between physical map and symbolic map?

746


Can you define cics task?

813


what are the reserved words for cics?

789