Page 1 of 1

Not able to rewrite file in CICS

PostPosted: Sat Jan 10, 2009 6:46 pm
by sadaf rehan
I have opned a file Read it and after some calculation i wanted to rewrite the file.
i have used the UPDATE option while reading first time and also used UPDATE option while
defining the file in CICS region.when i rewrite its showing response code as NORMAL but
not Rewriting to the file..
Can you suggest what could be the problem....

Re: Not able to rewrite file in CICS

PostPosted: Sat Jan 10, 2009 7:29 pm
by CICS Guy
What type of file?
How did you prove that file was not being rewritten?

Re: Not able to rewrite file in CICS

PostPosted: Mon Jan 12, 2009 9:30 am
by sadaf rehan
Its a KSDS file and for a particular key value i wanted to rewrite the record.
by TSO print command i view the file & come to know its not being rewritten.

Re: Not able to rewrite file in CICS

PostPosted: Mon Jan 12, 2009 2:23 pm
by CICS Guy
Did you close and open the file in CICS before checking with TSO?
Sometimes the actual data buffers do not get written immediately, the close will insure that all data gets written....

Re: Not able to rewrite file in CICS

PostPosted: Tue Jan 13, 2009 10:00 am
by sadaf rehan
yes i closed the file.thats the only way i can view the record of file by TSO command else it will show file in use...

Re: Not able to rewrite file in CICS

PostPosted: Fri Apr 03, 2009 11:58 am
by thisisme
1) try to use tso print while you're opening the file under CICS
- if "file in use", the go to step 2
- if ok, then check your FCT, it is pointing to wrong file
2) check any abend message in CICS log, may be the FCT only specify the file is read only, please also check is it a remote file that controlled by other CICS?

Re: Not able to rewrite file in CICS

PostPosted: Sat Apr 18, 2009 9:10 pm
by Rainer Lechtenberger
May be, it happened like that:

1. Record was read for update successfully
2. Record was updated successfully
3. Transaction abended before reaching an explicit or implicit syncpoint so the old record content was recovered.