IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Store the same record in the adabas file after modification


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Mon May 18, 2009 8:25 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top