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

Replacing specific postions in a table variable


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

New User


Joined: 17 Feb 2009
Posts: 32
Location: Bangalore

PostPosted: Fri Jun 12, 2009 3:37 pm
Reply with quote

I want to replace the particular position of a table variable(abc_var) with some value for which i used the below query.

UPDATE
table1

SET abc_table =
REPLACE (abc_var,1,3,BOX)

WHERE
abc_id = '400'
;

But its not working. I'm not sure about the syntax as well. Can anyone suggest on this.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Jun 12, 2009 4:37 pm
Reply with quote

You can not update part of a column in DB2.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6965
Location: porcelain throne

PostPosted: Fri Jun 12, 2009 5:17 pm
Reply with quote

ibmmainframes.com/viewtopic.php?p=191048&highlight=&sid=3c545aab8c636d659a33106a5a92c46d#191048
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Extract records for a specific condit... DFSORT/ICETOOL 25
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts variable in library name within a PROC. JCL & VSAM 11
No new posts Extract ISPF table column headings CLIST & REXX 2
Search our Forums:


Back to Top