Search found 102 matches

by spracht
Sun Aug 24, 2003 3:48 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: UV secondary indexes
Replies: 17
Views: 3783

Dummy, (I really hesitated to call you like that), I hope you don't mind that I ask Ken on the range (between) style select within this topic? Ken I had a couple of situations when I had to do such a range style lookup and couldn't help but to do a 'multi row result set' reference and subsequenly ex...
by spracht
Sun Aug 24, 2003 1:25 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: JOIN tables in Datastage
Replies: 14
Views: 5875

Billy

I don't understand the requirement (maybe a had one beer too much [:)]). Please try to explain it with more detail.

Stephan
by spracht
Sun Aug 24, 2003 1:16 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: UV secondary indexes
Replies: 17
Views: 3783

Hi is the job logic and the structure of the hash file the same as originally posted? If so, you would need a secondary index on CO_CODE rather than MATERIAL_NO, PLANT_ID? Where is your stream input coming from? If it's a hash file or uv table as well, you could interchange stream and reference. Or ...
by spracht
Fri Aug 22, 2003 6:22 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: JOIN tables in Datastage
Replies: 14
Views: 5875

As for the cumulation as of the week before, does that mean you would always only sum it up starting Sunday (or Monday) last week up to yesterday? In most DBMS there should be a function like WEEKDAY, returning 0-6 (or 1-7) for days of the week Sunday to Saturday or Monday to Sunday. Provided that t...
by spracht
Fri Aug 22, 2003 5:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: JOIN tables in Datastage
Replies: 14
Views: 5875

Does this fit better? You would possibly have to translate null values to 0.

SELECT a.IDNo, a.Date, a.Tran amount, SUM(b.Tran amount)
from table a, outer table b
where a.IDNo=b.IDNo
and b.Date < a.Date
group by a.IDNo, a.Date, a.Tran amount


Stephan
by spracht
Fri Aug 22, 2003 5:19 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: JOIN tables in Datastage
Replies: 14
Views: 5875

Billy

looks like you are trying to get the maximum Date and the sum of Tran Amount per IDNo. If that's the case, couldn't you try:

select IDNo, max(Date), sum(Tran amount)
from table a
group by IDNo

[?]

Stephan
by spracht
Fri Aug 22, 2003 1:53 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Compatibility across version and platform
Replies: 2
Views: 1076

Watch for pathnames and calls to OS commands: http://www.tools4datastage.com/forum/to ... C_ID=84936

Stephan
by spracht
Thu Aug 21, 2003 10:51 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Web Version for DataStage
Replies: 16
Views: 3301

I surely renamed a job (or created copies) in Manager more than a hundred times, but they never were corrupted. In Designer you will rather save a job under a new name, which in effect is creating a copy. Any controlling jobs refering to the original job will run the original, compiled version. Step...
by spracht
Thu Aug 21, 2003 10:39 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Select the 4th byte in a String
Replies: 2
Views: 551

Substring operations can be performed using square brackets [start,length].
As a derivation for your stage var you could use:

stagevar=sourcecolumn[4,1].


For other interesting forms to use [] please refer to the documentation.

Regards

Stephan
by spracht
Wed Aug 20, 2003 12:11 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with date function
Replies: 4
Views: 1468

Not that I remember. Are you using the function Date() or the system variable @DATE? If it's the function, maybe you are not really updating your date, but re-using the value returned by the first call?

Stephan
by spracht
Tue Aug 19, 2003 2:05 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Promotion of Jobs into test and production
Replies: 8
Views: 3242

Hello Joerg, I have no idea how the datasources are configured under Windows? Is there a configuration file or is it done in the registry? Is OCI not configured in the same place as ODBC datasources? If the datasource names were the same on each of your servers, you wouldn't need to change anything ...
by spracht
Tue Aug 19, 2003 1:40 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Promotion of Jobs into test and production
Replies: 8
Views: 3242

If you have three different DataStage servers, you could use the same datasource names, but in the $(cat /.dshome)/.odbc.ini you would direct them to different databases.

Stephan
by spracht
Tue Aug 19, 2003 1:21 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DSExecute problem
Replies: 4
Views: 2097

Cal

I think in this case

"testing.sh 'hello 1234'"

would suffice? The composition of the string like you used it is only necessary if you are using variables.


Stephan
by spracht
Mon Aug 18, 2003 11:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DSExecute problem
Replies: 4
Views: 2097

Cal in fact I also sometimes feel the need to quote things, e.g. an email subject that contains blanks or an enumeration. It's usually helpful to first decide on which quotation mark to use on inner and outer quotation (" or '). If you want to use parameter evaluation should choose " as in...
by spracht
Mon Aug 18, 2003 4:39 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: function for getting the current date
Replies: 1
Views: 1157

Nitin, up to DS 5.2 you could use: ereplace(oconv(Date(), "D-YMD[4,2,2]"),'-','') ereplace(oconv(Date(), "D-YMD[2,2,2]"),'-','') I think I once tried to get the date formatted without delimiter in one step, but didn't succeed. As this does'nt seem to be possible, I eliminate it u...