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

Update a timestamp field in DB2 using SPUFI


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

New User


Joined: 13 Feb 2006
Posts: 13

PostPosted: Thu Jul 26, 2007 1:23 pm
Reply with quote

Hi,

I need to update a timestamp field in DB2 table using SPUFI. Can any one help me out.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu Jul 26, 2007 2:08 pm
Reply with quote

Hi vimalprabhakaran,

Did you try to update that field?or what kind of problem your are facing in that?
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Thu Jul 26, 2007 2:51 pm
Reply with quote

Hi Vimalprabhakaran,

You can use UPDATE function, No problem in doing so in SPUFI, Please post your SQL and error.
Back to top
View user's profile Send private message
vimalprabhakaran

New User


Joined: 13 Feb 2006
Posts: 13

PostPosted: Thu Jul 26, 2007 3:13 pm
Reply with quote

HI I need to get system time stamp. I am updating the timestamp using SPUFI only. How to get the SYSTEM TIMESTAMP IN SPUFI?
Back to top
View user's profile Send private message
vimalprabhakaran

New User


Joined: 13 Feb 2006
Posts: 13

PostPosted: Thu Jul 26, 2007 3:16 pm
Reply with quote

Hi,
I want to update the timestamp field in a DB2 table. I need to get system time stamp. I am updating the timestamp using SPUFI only. How to get the SYSTEM TIMESTAMP IN SPUFI?
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Thu Jul 26, 2007 3:17 pm
Reply with quote

Hi,

Please give this,

Code:
UPDATE TABLE
      SET FIELD = CURRENT TIMESTAMP;
WHERE <Condition>
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Thu Jul 26, 2007 3:19 pm
Reply with quote

My Bad,

I have wrongly given Semicolon, excuse for my mistake.

Code:
UPDATE TABLE
      SET FIELD = CURRENT TIMESTAMP
WHERE <Condition> ;
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 DELETE SPUFI DB2 1
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top