If you have a date dimension table in your DB, this is easy:
SELECT
dateColumn
FROM DateDimTable
WHERE dateColumn BETWEEN minDate AND Maxdate
ORDER BY dateColumn
Use this stream of date values to create your target records
Carter
Search found 114 matches
- Thu Jun 22, 2006 11:08 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Date Values within some limit
- Replies: 8
- Views: 2775
- Wed Jun 14, 2006 7:46 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How can I import Cobol EBCDIC file definitions?
- Replies: 11
- Views: 4522
ISTR a condition where the length of the element declaration was too long for the DataStage import job to handle, and so it missed the terminating period '.'. In my case it was a particular problem with length of REDEFINES, as you have, try splitting the REDEFINES statement onto two lines instead of...
- Wed Jun 14, 2006 7:35 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Addition
- Replies: 6
- Views: 2621
- Wed Jun 07, 2006 5:55 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Mystery of the missing "File" Toolbar!
- Replies: 12
- Views: 7494
- Wed May 10, 2006 1:04 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Schema File formats
- Replies: 12
- Views: 3322
Hi, I'm following everything up to where you 'generate a schema file' from the table definition. I have 7.5, how do you do this? .... Theoretically, this would enable me to add a field to this table definition, generate a schema file, save it to the OS and boom! the new field shows up in all 19 file...
- Wed Apr 19, 2006 12:34 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: DateDifference
- Replies: 12
- Views: 3004
- Tue Apr 18, 2006 11:29 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: DateDifference
- Replies: 12
- Views: 3004
Considering gateleys observation about leap years, what you must do is first extract the year portion of each date, and then subtract. Also, consider how your application treats fractional year differences; do you 'round-up' or 'round-down'? As for the built-in date difference function, since DataSt...
- Wed Apr 12, 2006 8:46 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: CRC32 Does have limitations (severe in my opinion)
- Replies: 26
- Views: 16863
I've also run into CRC32 collisions on large data sets. There are only 2^32 possible CRC32 values, so any dataset with more records is guaranteed to yield collisions. But the likelyhood of a single collision in a uniformly ditributed data set is 50% even with much smaller datasets. (Look up 'Birthda...
- Wed Apr 12, 2006 6:42 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Modify stage
- Replies: 4
- Views: 1238
- Mon Jan 16, 2006 5:48 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Ascii to Binary Conversion
- Replies: 1
- Views: 1144
- Thu Jan 12, 2006 10:08 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: StringToDate format
- Replies: 3
- Views: 1819
Re: StringToDate format
Observe that the example dates you have given are in 'dd/mm/yyyy' format ('27/10/2002'), while the format string you gave is 'mm/dd/yyyy'. Carter I'm reading a sequential file with many dates in it. ex: 27/10/2002 27/1/2002 1/12/2003 1/3/2004 I applied StringToDate(MY_DATE_STRING[1,10],"%mm/%dd...
- Fri Dec 16, 2005 9:15 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Date Conversion
- Replies: 11
- Views: 5877
- Fri Dec 16, 2005 9:06 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to insert Timestamp with nano seconds in Oracle table
- Replies: 9
- Views: 5795
- Wed Dec 14, 2005 8:32 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Date Conversion
- Replies: 11
- Views: 5877
- Wed Dec 14, 2005 8:28 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: MKS Toolkit
- Replies: 5
- Views: 1802
Yeah, but beware of filenames with embedded whitespace. You have to make sure that all command line strings enclose all file/path with Double Quotes, meaning that you have to take pains to escape the DQ correctly inside DataStage. Don't get me wrong, I *like* MKS, but it can be a PITA. Since your re...