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.

Answers were Sorted based on User's Feedback



Hai I have a VSAM file and there are two CICS pgms A and B both intends to update the file. Ho..

Answer / lu

you have to read UPDATE...the first program will lock the
page...
Correct me if i'm wrong..

Is This Answer Correct ?    7 Yes 4 No

Hai I have a VSAM file and there are two CICS pgms A and B both intends to update the file. Ho..

Answer / 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

Hai I have a VSAM file and there are two CICS pgms A and B both intends to update the file. Ho..

Answer / balmukund

RLS is a VSAM function , provide by DFHSMS , that enables
data to be shared with full updates capability, between many
applications running in many CICS programs. With RLS CICS
share VSAM data sets can reside in multiple MVS images
within a parallel sysplex, RLS also provide the benefits
when data sets being shared between CICS regions and batch
jobs. also provide different level of READ integrity and
update with Browse.

So if multiple application use same VSAM file then better
option to use VSAM RLS.

Second we can achieve by using SUSPEND option , it allow the
application programs to control the action if the records to
be accessed in unavailable .

Is This Answer Correct ?    0 Yes 1 No

Hai I have a VSAM file and there are two CICS pgms A and B both intends to update the file. Ho..

Answer / jim

Have programs A and B Enqueue the VSAM file.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More CICS Interview Questions

I have the transaction name for cics screen.. With the transaction name, how will I find the cics program written for the transaction and BMS map program also...

4 Answers   CGI,


<CICSFault xmlns="http://www.ibm.com/software/htp/cics/WSFault">DFHPI10 08 05/13/2009 05:47:14 FSCIBM SOAP message generation failed because of incorrect input (INPUT_STRUCTURE_TOO_SMALL ).</CICSFault> Can anyone suggest how to handle this type of error?

1 Answers  


What is the eib?

0 Answers  


How to get the sign-on user-id from an application program?

1 Answers  


What CICS facilities can you use to save data between the transactions?

1 Answers   IBM,






How To Retrive The VSAM Datasets in CICS application programs?

1 Answers   Accenture, IBM,


What is the difference between a RETURN with TRANSID and XCTL ?For example prog. A is issuing REUTRN with TRANSID to prog B. Prog A. is issuing XCTL to prog B?

3 Answers  


What is the comaera?

0 Answers  


Can anyone say full transaction process? i mean when user press enter key after that what happens from there to till end of transaction

3 Answers  


Which of the following commands, when issued by 2 different programs running at the same time, will prevent simultaneous use of resource 'SINGLE'?

1 Answers  


whar is the difference bwn LINK() and XCTL()?

7 Answers   Cap Gemini, CGI, IBM,


hi,what is the module? how many modules in mainframe based banking projects

0 Answers  


Categories