Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vcjadhav
Warnings : 1

New User


Joined: 27 May 2008
Posts: 19
Location: India

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

yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
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
Warnings : 1

New User


Joined: 27 May 2008
Posts: 19
Location: India

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: 103
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
Warnings : 1

New User


Joined: 27 May 2008
Posts: 19
Location: India

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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us