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
 

 

Update a timestamp field in DB2 using SPUFI

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Update a timestamp field in DB2 using SPUFI
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

Moderator


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

PostPosted: Thu Jul 26, 2007 2:08 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: TO GET SYSTEM TIMESTAMP IN SPUFI FOR DB2 TABLE UPDATE
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm


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