Search found 53125 matches

by ray.wurlod
Sat Jan 12, 2008 5:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to get the previous date in Transformer
Replies: 3
Views: 1637

DateFromDaysSince() function should do it for you. The days offset can be negative.
by ray.wurlod
Sat Jan 12, 2008 5:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Problem in constraint/checking for alphabatic and numeric
Replies: 5
Views: 1042

You may have quite a wait until U logs in again; he hasn't posted in a while (but may still be lurking). Why do you specifically want U to help in any case? U's profile shows only beginner level.

And is plz somewhere in eastern Europe or the Balkans?
by ray.wurlod
Sat Jan 12, 2008 5:17 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Horizontal Pivot That Identifies Column Position
Replies: 6
Views: 5574

Create (probably as a constant in an upstream Transformer stage)

Code: Select all

Position,1,2,3,4

and include that in the pivot.
by ray.wurlod
Sat Jan 12, 2008 12:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Problem in constraint/checking for alphabatic and numeric
Replies: 5
Views: 1042

If EMP_ID can be null from source you must handle this explicitly. Functions such as Alpha() and Num() can not accept null arguments. Calculate stage variable svEmpIdTest as follows. If IsNull(InLink.EMP_ID) Then -1 Else If Alpha(InLink.EMP_ID[6,1]) And Num(InLink.EMP_ID[5,1])...
by ray.wurlod
Fri Jan 11, 2008 10:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Oracle insert statement with ORACLE sequence.
Replies: 14
Views: 7064

To work from a lookup you need a WHERE clause that mentions the Key column(s) bound to parameters. SELECT whatever FROM wherever WHERE KeyCol = :1 You could have reference to a sequence in the SELECT clause I suppose, though I struggle to think of a good reason when you can add one to a variable in ...
by ray.wurlod
Fri Jan 11, 2008 6:22 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: problems with SQLExecDirect (again)
Replies: 37
Views: 14851

You never know with exec. Could be the address of a pointer to a cursor structure, or something. Try something simpler, like SELECT COUNT(*) FROM DUAL and build up from there. It's more usual to use CALL with ODBC to execute stored procedures. Try that instead of EXEC. Otherwise investigate using SQ...
by ray.wurlod
Fri Jan 11, 2008 6:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Need to check file on a Unix box from our ETL server till...
Replies: 8
Views: 2502

Yes, but not elegantly. The only "pull" solution is regular polling, as you have identified.
by ray.wurlod
Fri Jan 11, 2008 6:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Issue with the job logs
Replies: 28
Views: 5133

That suggests that the old job is not in a properly deleted state. Did you rename it before importing? If so, delete the renamed job (using a DataStage client too). This will delete all the "support files" properly.
by ray.wurlod
Fri Jan 11, 2008 3:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Issue with the job logs
Replies: 28
Views: 5133

No!!!!!

You don't know which they all are, and you would still leave the VOC entries that point to them in place.

Run the command DS.CHECKER, whose task it is to clean up such orphaned files.
by ray.wurlod
Fri Jan 11, 2008 3:55 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: make something that calls attention when an abort occurs
Replies: 10
Views: 3301

One of the support engineers at VMARK (who is still with IBM support, so shall remain nameless) suggested two additions to the CPU instruction set that would be useful in this circumstance.
    HCF (halt and catch fire)

    HEK (halt and electrify keyboard)
Now them's real warrior words!
by ray.wurlod
Fri Jan 11, 2008 3:52 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Need to check file on a Unix box from our ETL server till...
Replies: 8
Views: 2502

The elegant way is to have the other application trigger a DataStage job that is set up as a web service, once its computations are completed.
by ray.wurlod
Fri Jan 11, 2008 3:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Placing a constraint in transformer
Replies: 9
Views: 3203

That is the strangest definition of mantissa that I have ever encountered, and I believe it to be wrong. If the field is a string, use Field(InLink.TheField, ".", 2, 1) to identify that component following the decimal placeholder ("." assumed) and compare that against zero. If the field is a decimal...
by ray.wurlod
Fri Jan 11, 2008 3:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Issue with the job logs
Replies: 28
Views: 5133

Even then thousands of log messages may already be buffered for writing. You need to find a quiet point, then clear the log (which you can do from Director). You clearly also need to correct your job logic to avoid committing the constraint violations. Use a "look before you leap" strategy: perform ...
by ray.wurlod
Fri Jan 11, 2008 3:36 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Routine Help
Replies: 8
Views: 1832

Oconv(InLink.GivenDate, "D-YM[4,2]") : "-01" is the first day of its month if GivenDate is in internal format. If it is not, apply an approriate Iconv() to GivenDate within the Oconv() function.

The function I have already given is the first day of the current month.

The rest is arithmetic.
by ray.wurlod
Fri Jan 11, 2008 3:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Calling dsjob from unix to run the same sequencer
Replies: 7
Views: 5862

And, of course, pass invocation ID fully down the chain of controlled jobs and job sequences.

Incidentially, the term is "sequence", not "sequencer". As you will see on the Palette, a Sequencer is a component that you can use in a Sequence.