Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
CURRENT TIMESTAMP as Default

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Pandora-Box

Moderator


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

PostPosted: Thu Jun 13, 2013 9:34 pm    Post subject: CURRENT TIMESTAMP as Default
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: 1775
Location: Bloomington, IL

PostPosted: Thu Jun 13, 2013 10:17 pm    Post subject:
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

Moderator


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

PostPosted: Thu Jun 13, 2013 11:02 pm    Post subject:
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

Moderator


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

PostPosted: Fri Jun 14, 2013 12:27 pm    Post subject:
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    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 Comparing 2 Files using Current time arunsoods DFSORT/ICETOOL 5 Fri Sep 22, 2017 6:00 pm
No new posts Default FTP options vasanthz All Other Mainframe Topics 2 Fri Aug 25, 2017 5:58 am
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us