Search found 102 matches

by spracht
Mon Aug 18, 2003 12:55 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Running a job cyclically till it fails
Replies: 11
Views: 1793

Alok I'm wondering what your job looks like; you're talking about one or more tables where a particular field for all rows has to be 'Y' before you can continue. I assume that you get them all togther using a union statement, or like Ray suggested in your previous topic, a select distinct: select di...
by spracht
Fri Aug 15, 2003 11:52 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Creating Error Report Files
Replies: 9
Views: 2149

JB, I think using Linkname.REJECTED will do exactly what you require. Beside the records that failed to fulfill the constraint on the output link to your table, it will, as Michael described, collect those records that were rejected by the DBMS itself. You would even be able to record the reason (er...
by spracht
Fri Aug 15, 2003 10:25 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Creating Error Report Files
Replies: 9
Views: 2149

I noticed (but never tried) the output link variable REJECTED, which, unlike the others, is not preceded by a linkname. Using this as a constraint probably has a similar effect as checking the 'reject row' box, i.e. it will collect those records that were rejected by all other output links (but with...
by spracht
Fri Aug 15, 2003 7:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Creating Error Report Files
Replies: 9
Views: 2149

Michael

I am not sure that the 'Reject row' box has to be checked to get the rejected records? I think it will be sufficient to have the constraint for Link2 set to Link1.REJECTED or Link1.REJECTEDCODE.

Stephan
by spracht
Fri Aug 15, 2003 4:56 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sensing for a particular field value in source
Replies: 13
Views: 1638

Thank you, Raj, it looks better now, though I can hardly spot the blank between '!' and '2', not even when I tried with multiple spaces.

Stephan
by spracht
Fri Aug 15, 2003 1:10 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sensing for a particular field value in source
Replies: 13
Views: 1638

There seems to be a display problem with a line of code in my last reply:

Looking correct when editing, the line:

count=$(dbaccess dbname ...

displays completely different after being saved. Any idea how to avoid that?
by spracht
Thu Aug 14, 2003 1:04 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sensing for a particular field value in source
Replies: 13
Views: 1638

Alok, I will gladly try, though I'm not an Oracle expert, and I have some experience in scripting on UNIX, not NT. Let's assume we had an informix database, so we would use dbaccess (is this sqlplus for oracle?) as frontend. Within the shellscript, I would have a lines like this: * possibly some env...
by spracht
Thu Aug 14, 2003 12:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sensing for a particular field value in source
Replies: 13
Views: 1638

One possibility: Write a shellscript that does the following query against your database: select count(*) from table where field='N'; Catch the result into a variable in your controlling job. If it's 0, kick off the load else don't (I must concede that this only works, if the value of the field in q...
by spracht
Thu Aug 14, 2003 11:07 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: what's a staging area
Replies: 10
Views: 4062

Roy

I apologize, if the topic should be misplaced here [B)]. But thanks to all for the responses it provoked nonetheless [:)].

Stephan
by spracht
Thu Aug 14, 2003 7:24 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: what's a staging area
Replies: 10
Views: 4062

what's a staging area

I stumbled across the term 'staging area' a couple of times, and I have no faint idea what that is. Could somebody please explain what it means? Thanks in advance!

Stephan
by spracht
Thu Aug 14, 2003 2:24 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job Aborting randomly, runs successfully also
Replies: 6
Views: 1853

Strange, we are on DS 5.2 and encountered frequent 'Abnormal Termination' aborts when aggregating data within uv-stages. We worked around it using aggregator stages!!!

Stephan
by spracht
Tue Aug 12, 2003 2:50 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Run ds jobs from Unix prompt and pass parameters
Replies: 3
Views: 2143

Ken and Raj kindly pointed me to the dsjob command line utility:
http://www.tools4datastage.com/forum/to ... C_ID=84826. Inside a job you can evoke it using ExecSH('UNIX', InputArg, Output).

Stephan
by spracht
Tue Aug 12, 2003 11:17 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Handling the Date datatype
Replies: 3
Views: 1730

I was facing the same questions and found that DataStage doesn't have a datatype that contains both the date and time portion of a timestamp. They must be handled separately. The internal representation of a date is an integer as the number of days since '1967-12-31', while a time is the number of s...
by spracht
Mon Aug 11, 2003 8:15 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Calculate number of months between 2 dates
Replies: 4
Views: 2107

Substracting two dates with a result>0 is the number of days passed since 1967-12-31. Formatting this a "D-M" will, I think, tell you the month in which that day lies. Applied to 2003-08-11 as end-date and 2002-08-10 as start-date, I wouldn't expect 13 (better: 12), but 1 (January 1969). S...
by spracht
Mon Aug 11, 2003 1:42 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: common variables
Replies: 6
Views: 2019

Kim when you state: "If you telnet into your server and at TCL type in HELP BASIC then you will see a lot of commands not very well documented. The goal of DataStage is not to expose you to all of the functionality of the underlying engine because it is going away" does this mean that the ...