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
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 |
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 |
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 |
Why doesn?t CICS use the Cobol Open and Close statements ?
What are the common tables in cics and their usage?
Define ceci?
How many ways to share information between different CICS programs?
I just want to ask why does the variable I passed in a dclgen of sql that has a data type of varchar which has a maximum length is 250 is truncated,, Here is the code.. DCLGEN of rsauud01 table 01 dataarea 43 data-area-len pic s9(4). 43 data-area-text pic x(250). MYVARIABLE. 01 DATAAREA1 pic x(250). move 250 to data-area-len of dataarea of rsauud01 MOVE DATA-AREA1 TO data-area-text of dataarea of rsauud01 --- but it is always trucated everytime I insert it in the table by the way it is a cobol-cics program
Can you define mapset?
What is the meaning of the eibaid field?
What is the comaera (communication area)?
What does EIB mean?
What are the types of important programs that are used in the cics?
What is fset?
Which of the following statements correctly describe the syntax of CICS command language?