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

What is the difference between the enter key, the PF keys and the PA keys?

2 Answers  


When there are 2 records with the same key specified in a DELETE operation what will happen?

2 Answers  


What is the difference between a return with transid and xctl?

0 Answers  


Explain the difference between and exec cics xctl and an exec cics link command?

0 Answers  


What is meant by pseudo-conversation?

1 Answers   Accenture,


What is the component?what are the different components there using cobol and cics

2 Answers   IBM, SPIC,


How is the storage determined in the symbolic map, if you have multiple maps?

2 Answers   IBM, Wipro,


What is the general Command format of CICS ?

1 Answers   Amdocs,


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

0 Answers  


What is CEDF?

3 Answers   IBM,


What are the parameters that you have to give when you are using the CSSN transaction?

3 Answers  


Every map is categorized into multiple fields, and there are three common working storage fields present for each of these respective fields. Mention those?

0 Answers  


Categories