Search found 114 matches

by clshore
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

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
by clshore
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...
by clshore
Wed Jun 14, 2006 7:35 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date Addition
Replies: 6
Views: 2621

As has been discussed before, if you are doing date-month math, you need to define what happens in cases like this:

Jan 31, 2006 + 1 month = ???

Is it Feb 28, 2006?

What about:

Feb 28, 2006 - 1 month = ???

Is it Jan 28, 2006, or Jan 31, 2006?

Carter
by clshore
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

I've had this a couple of times in 7.X,
re-install fixed it; but have also used 'regedit' to hack the registry.
I still don't know what combo of mouse/keystroke/moonphase causes it,
but once gone, it's gone.

Carter
by clshore
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...
by clshore
Wed Apr 19, 2006 12:34 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DateDifference
Replies: 12
Views: 3004

Or more directly:

Ans = Oconv(Iconv(Arg1[1,10],"D/MDY"),"D4Y") - Oconv(Iconv(Arg2[1,10],"D/MDY")),"D4Y")


Carter
by clshore
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...
by clshore
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...
by clshore
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

If you are trying to extract some of the digits, why not use arithmetic operations instead?
Conversion from a number to a string is usually less efficient than pure arithmetic processing.

Carter
by clshore
Mon Jan 16, 2006 5:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Ascii to Binary Conversion
Replies: 1
Views: 1144

Sounds to me as if you are looking to use the International character set, rather than plain old 8 bit ASCII.
I believe that this can be set at the server, project, and job level?
(More savvy list members, please jump in here?)

Carter
by clshore
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...
by clshore
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

Samu wrote:

For example: in source if i have '1050414' , i need to get it in form 'April 14,2005'

My point about the leading year was this:

If you have '1050414', convert and add 19000000, yielding 20040414.
Then convert that to 'April 14,2005'

Carter
by clshore
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

Not to be picky, but nano seconds are .000000001 of a second.
With format YYYYMMDDhhmmss+xxxx, you are dealing with tenths of milliseconds (or hundreds of microseconds), not nanoseconds.

Nano seconds would be like YYYYMMDDhhmmss+xxxxxxxxx.

Carter
by clshore
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

I think you will find that the year portion can be expressed as the number of years since 1900.

Thus, 2005 becomes 105, 1997 becomes 097, etc.

Knowing this may help you with any future date arithmetic.

Carter
by clshore
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...