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

Unloading of DB2 data from a table based on current date


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

New User


Joined: 29 Jun 2009
Posts: 2
Location: Mumbai

PostPosted: Tue Jun 30, 2009 7:58 pm
Reply with quote

Hi !

I have a table with 3 fields - id, name, address. I want to unload the data from the table based on current date everyday.

How can I achieve this?

Thanks for your support ! icon_smile.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Jun 30, 2009 8:24 pm
Reply with quote

You can't,
since you have only 3 columns:
  1. id
  2. name
  3. address

how do you expect to determine a row for a particular date?
Back to top
View user's profile Send private message
Vidita Nolkha

New User


Joined: 29 Jun 2009
Posts: 2
Location: Mumbai

PostPosted: Wed Jul 01, 2009 5:07 pm
Reply with quote

Is there a way using system date of today?? I want to unload the data on the very day its loaded..
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


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

PostPosted: Wed Jul 01, 2009 5:27 pm
Reply with quote

If there is no date loaded in the table you can not identify when the rows were loaded.
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 Load new table with Old unload - DB2 DB2 6
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top