Not able to rewrite file in CICS



Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

Not able to rewrite file in CICS

Postby sadaf rehan » Sat Jan 10, 2009 6:46 pm

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....
sadaf rehan
 
Posts: 10
Joined: Wed Jan 07, 2009 8:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Not able to rewrite file in CICS

 

Re: Not able to rewrite file in CICS

Postby CICS Guy » Sat Jan 10, 2009 7:29 pm

What type of file?
How did you prove that file was not being rewritten?
CICS Guy
 
Posts: 255
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: Not able to rewrite file in CICS

Postby sadaf rehan » Mon Jan 12, 2009 9:30 am

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.
sadaf rehan
 
Posts: 10
Joined: Wed Jan 07, 2009 8:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Not able to rewrite file in CICS

Postby CICS Guy » Mon Jan 12, 2009 2:23 pm

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....
CICS Guy
 
Posts: 255
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: Not able to rewrite file in CICS

Postby sadaf rehan » Tue Jan 13, 2009 10:00 am

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...
sadaf rehan
 
Posts: 10
Joined: Wed Jan 07, 2009 8:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Not able to rewrite file in CICS

Postby thisisme » Fri Apr 03, 2009 11:58 am

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?
thisisme
 
Posts: 1
Joined: Mon Jan 19, 2009 3:28 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Not able to rewrite file in CICS

Postby Rainer Lechtenberger » Sat Apr 18, 2009 9:10 pm

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.
Rainer Lechtenberger
 
Posts: 2
Joined: Mon Apr 06, 2009 3:25 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CICS

 


  • Related topics
    Replies
    Views
    Last post