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

CURRENT TIMESTAMP as Default


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

Global Moderator


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

PostPosted: Thu Jun 13, 2013 9:34 pm
Reply with quote

Hi all,

As a one time activity I need to load a table using a file and I have a situation where the my table contains 5 fields and the file contains 4 and where the field missing is to be stored with CURRENT TIMESTAMP and Is it possible to store the CURRENT TIMESTAMP value to be inserted for every record from the file

My shop doesnt support CONSTANT VALUE

Is there an option to populate CURRENT TIMESTAMP for every record in the input file using LOAD UTILITY?

or Also is there an option to set the table field WITH DEFAULT CURRENT TIMESTAMP or something similar?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Jun 13, 2013 10:17 pm
Reply with quote

Can the column be (re-)defined as NOT NULL WITH DEFAULT?
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 Jun 13, 2013 11:02 pm
Reply with quote

Yes I have control over the tables so it can be done icon_smile.gif
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


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

PostPosted: Fri Jun 14, 2013 12:27 pm
Reply with quote

I felt Timstamp not needed so removed it icon_smile.gif

Thanks anyway
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 To get the count of rows for every 1 ... DB2 3
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Changeman - how can we know the curr... Compuware & Other Tools 2
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Running a Job with the Default User ID JCL & VSAM 2
Search our Forums:

Back to Top