Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
VSAM with AIX.. Read Failure after writing a record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
vcjadhav

New User


Joined: 27 May 2008
Posts: 5
Location: Thane

PostPosted: Tue May 27, 2008 7:01 pm    Post subject: VSAM with AIX.. Read Failure after writing a record
Reply with quote

Hi..I m writing a record to a VSAM base cluster which has 2 AIX files associated with it..I tried to write a record into that Cluster and then Read the record below in some other Section. The problem here i faced is when i try to read the record which was written in above section is not been read...I was able to read the same record if and only if i close and open the base and AIX files again...But this is not the solution...i need some other effective way to get it...I have read that this normally occurs due to the data getting written into Buffer Space of Base cluster...so normally when we close-open file the data from buffer gets written into base/aix file..Can any one put there suggestion on any alternate option on it..
Back to top
View user's profile Send private message
References
PostPosted: Tue May 27, 2008 7:01 pm    Post subject: Re: VSAM with AIX.. Read Failure after writing a record Reply with quote

yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 72
Location: INDIA

PostPosted: Tue May 27, 2008 7:44 pm    Post subject: Re: VSAM with AIX.. Read Failure after writing a record
Reply with quote

vcjadhav wrote:
I tried to write a record into that Cluster and then Read the record below in some other Section.


Why dont you put your data in Temporary Variable before writing & use the same whenever you wanna to read?
Back to top
View user's profile Send private message
vcjadhav

New User


Joined: 27 May 2008
Posts: 5
Location: Thane

PostPosted: Tue May 27, 2008 7:50 pm    Post subject: Reply to: VSAM with AIX.. Read Failure after writing a recor
Reply with quote

No i cant do so..bcoz d situation is like this..i have a key...n i need to find if the record already exists in file with that key..if it exists i den add a tie breaker to it..n den again write the record with new key...n hence situation/problem arises if i try to write d same data again.in some other section..its not reading the previously written data..
Back to top
View user's profile Send private message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 72
Location: INDIA

PostPosted: Wed May 28, 2008 7:58 am    Post subject: Reply to: VSAM with AIX.. Read Failure after writing a recor
Reply with quote

If possible explain your query with example, that will help all to better understand it.
Back to top
View user's profile Send private message
vcjadhav

New User


Joined: 27 May 2008
Posts: 5
Location: Thane

PostPosted: Wed May 28, 2008 10:31 am    Post subject: Reply to: VSAM with AIX.. Read Failure after writing a recor
Reply with quote

I am having a record in base cluster whose AIX file has some key suppose emp id..n dis emp id is based on his/her first/last name/dob/sex n different combination...now if i try to add a record with same id...it should first search the base cluster for if the record with dis new emp id is present or not...if present den add a tie breaker to d new emp id..hope dis clears..
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 7997
Location: 221 B Baker St

PostPosted: Wed May 28, 2008 8:50 pm    Post subject:
Reply with quote

Hello,

Quote:
if present den add a tie breaker to d new emp id..hope dis clears..
What happens when the tie-breaker already exists?

Please use "real words" - den, dis, d, are just being lazy/"cute" and do nothing to help present your thought.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1