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
 

 

Store the same record in the adabas file after modification

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
beruoist

New User


Joined: 14 Nov 2007
Posts: 70
Location: mumbai

PostPosted: Mon May 18, 2009 11:57 am    Post subject: Store the same record in the adabas file after modification
Reply with quote

Hi,

Below is the requirement.

I need to store the same record which i am reading in the adabas file after modification of few fields.

So i am using below logical flow.

1 ) database view defined in the define data
2 ) Read the database with the key.
3 ) now update the selected fields with the required values.
4 ) Do a Store view name and end transaction.

Now the problem is the data is not getting stored in the file.

Am i missing something or bypassing anything in here ?

Please tell me if you require the code.

Thanks
Beruoist
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon May 18, 2009 8:25 pm    Post subject:
Reply with quote

Yes, you are missing. If you are updating an existing record, you need to use the UPDATE statement. The STORE statement is for newly added records (like INSERT in DB2).

O.
Back to top
View user's profile Send private message
beruoist

New User


Joined: 14 Nov 2007
Posts: 70
Location: mumbai

PostPosted: Tue May 19, 2009 2:11 pm    Post subject:
Reply with quote

Ofer,

Actually i am updating the record,and i need to store the updated record as a new record in DB.

However i have done it.

Thanks for your reply
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


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