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

Updating a DB2 table by a cobol program


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
DEEPAKNAG

New User


Joined: 12 Aug 2005
Posts: 1

PostPosted: Wed Aug 17, 2005 1:57 pm
Reply with quote

Hi all,

Can any one pls tell ne what will be the query for

updating a DB2 table by a cobol program.

i want a generalised format.

pls help me

regards
Deepaknag.y
Back to top
View user's profile Send private message
bonniem

New User


Joined: 09 Aug 2005
Posts: 67

PostPosted: Wed Aug 17, 2005 5:56 pm
Reply with quote

You should have searched for this.

UPDATE <table name>
SET <fieldname1> = <value1>, <fieldname2> = <value2>
WHERE
<conditions>
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Thu Nov 03, 2005 10:50 am
Reply with quote

hi frnd,
hope the below query will do
EXEC SQL
UPDATE SET ENAME = :ENAME
WHERE ENO = :ENO
END-EXEC.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Load new table with Old unload - DB2 DB2 6
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top