Search found 42189 matches

by chulett
Sat Aug 20, 2005 7:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to read a file and rewrite it?
Replies: 8
Views: 2915

So, just to be clear... Because you are using a routine that reads the entire file into memory, this allows you to write everything back to the same filename when you are done - something that is not possible when using Sequential File stages. Ray, you mention 'ReadU' but don't use it in the posted ...
by chulett
Sat Aug 20, 2005 7:09 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Storing Date in Integer Field
Replies: 5
Views: 1131

Re: Multiple Conversion Technique

ray.wurlod wrote:Iconv() and Oconv() functions can perform multiple conversions; the list of conversion specifications is presented as a multi-valued field (that is, conversion specifications separated from each other by value marks). It's a handy shortcut sometimes.

Zowie. I had no clue you could do that. 8)
by chulett
Fri Aug 19, 2005 7:09 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Is there any limit for aggregator stage in handling rows
Replies: 7
Views: 2023

ray.wurlod wrote:You must then inform the Aggregator stage - on its input link - that the data are sorted by the grouping column(s).

And don't even think about lying to it - the stage will bust you for that. Big time. :lol:
by chulett
Fri Aug 19, 2005 7:07 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Strange behaviour of a Before-Job Sub routine
Replies: 3
Views: 1147

You learn pretty quickly that 'it runs from the command line' doesn't mean it will run when executed from a DataStage job. The environment they run under is pretty restricted, even when using 'the same userid'. Make no assumptions about what environment variables are available. Explicitly set them i...
by chulett
Fri Aug 19, 2005 7:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Storing Date in Integer Field
Replies: 5
Views: 1131

Ok, you lost me a little on that one Ray. :? Maybe more than a little.

Not someplace where I can just plug in the syntax, so brain only at this point. It's similar to using the DIGITS transform, but I don't get the use of the value mark. Have to VPN in and check it out...
by chulett
Fri Aug 19, 2005 3:33 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Getting an error while trying to read excel sheet in Sequen
Replies: 5
Views: 1320

You can't use a Sequential File stage to read a spreadsheet unless you've saved it in .csv format first. To read the .xls directly you need to use the ODBC stage instead.
by chulett
Fri Aug 19, 2005 11:55 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Storing Date in Integer Field
Replies: 5
Views: 1131

Try stripping the date separators from the field. For example:

Code: Select all

EReplace(Oconv(Date(),"D-YMD[4,2,2]")),"-","")
by chulett
Fri Aug 19, 2005 11:53 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to read a file and rewrite it?
Replies: 8
Views: 2915

No. You need to write to a new (or at least different) name, then decide what you want to do in the way of post processing. Rename new back to old, perhaps. Save off original file somewhere first, perhaps. Your call.
by chulett
Fri Aug 19, 2005 8:09 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Creating PX jobs using Server Job
Replies: 5
Views: 1462

Glad I could help. Feels good every now and then to channel Dr Evil. :wink:

And yes, I they only knew... :shock:
by chulett
Fri Aug 19, 2005 7:45 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Creating PX jobs using Server Job
Replies: 5
Views: 1462

Hard work, mad skillz and an intimate knowledge of the internal structures of PX jobs. :wink:

And it can be all yours for only... [puts little finger in mouth]... one million dollars. :lol:

(sorry)
by chulett
Fri Aug 19, 2005 7:31 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Is there any limit for aggregator stage in handling rows
Replies: 7
Views: 2023

As noted, there is a definite limit on the number of rows the aggregator can handle. That number, of course, isn't a fixed number as the total size of the rows being aggregated is more of the issue. The only way I've found to successfully agg millions of rows is by presorting them. Then it only need...
by chulett
Fri Aug 19, 2005 7:24 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to reset job status (96) via job control
Replies: 7
Views: 2811

I'm not really sure how you would safely do this from job control. If it thinks it is running, it won't touch it. For those kind of situations, that's why the Clear Status option asks you "Are you really sure you want to do this?". Do you then go grepping for pids as a double-check? Perhaps a recomp...
by chulett
Thu Aug 18, 2005 8:31 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Statistic with UPDATE/INSERT Option
Replies: 4
Views: 1110

The problem is that it not possible (itseems so for me) to implement update and insert in two separated links. Umm... this is pretty much ETL 101. Check the incoming data against the existing data so you know which rows should be inserted and which should be updated. How? Read on... Hash up existin...
by chulett
Thu Aug 18, 2005 5:17 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Statistic with UPDATE/INSERT Option
Replies: 4
Views: 1110

However, if what you are doing is using a single link with an update action of the "Insert then Update" (or the opposite) type, you can never know which ones ended up being inserts and which ones ended up being updates. Except, perhaps, by querying the results if you are timestamping records. They ...
by chulett
Thu Aug 18, 2005 3:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Discovering Where Hashed Files are used
Replies: 10
Views: 4717

Go to his website and download the job, it's very well documented. You feed an export (.dsx file) in one end and and a .csv file comes out the other end. 8)

We used to keep the output in a spreadsheet, but pushing it up into a table made things easier.