Search found 53125 matches

by ray.wurlod
Tue Jun 16, 2009 7:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Converting String to Month
Replies: 1
Views: 843

Code: Select all

(Index("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC", InLink.TheString[4,3], 1) - 1) / 3 + 1
for the month number. Store that in stage variable svMonthNumber.

Code: Select all

Right("00" : svMonthNumber, 2)
will yield that number with a leading zero if necessary.
by ray.wurlod
Tue Jun 16, 2009 7:32 pm
Forum: General
Topic: Load an IXF File
Replies: 10
Views: 2605

If you know, or can obtain, metadata about the layout of an IXF file then DataStage can read it.
by ray.wurlod
Tue Jun 16, 2009 6:14 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reconciliation
Replies: 9
Views: 1770

If you are reading using File Pattern then the Sequential File stage can generate file name into another output column that you define. The number of records can be had by counting a constant (even the file name)using an Aggregator stage grouping by file name. You can detect mismatch using a Transfo...
by ray.wurlod
Tue Jun 16, 2009 4:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: max of two varchar
Replies: 2
Views: 1262

Aggregator stage to calculate MAX.

Sort then use Remove Duplicates stage. For example, if sort is ascending, have Remove Duplicates pass only the last record in each group.
by ray.wurlod
Tue Jun 16, 2009 4:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reconciliation
Replies: 9
Views: 1770

How are you reading the files with DataStage?
by ray.wurlod
Tue Jun 16, 2009 4:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: What is "parameter1" in ODBC DB2 wire protocol err
Replies: 19
Views: 9719

I believe that Parameter1 refers to one of the arguments of the ODBC API function SQLSetConnectOption(). This is used, among other things, to establish the operating system credentials for the connection. Find out more about this function in ODBC API documentation or UniVerse BCI documentation.
by ray.wurlod
Tue Jun 16, 2009 4:39 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rows into Columns
Replies: 3
Views: 1324

IsNull() function, IsNotNull() function, NullToValue() function, to name just three.
by ray.wurlod
Tue Jun 16, 2009 4:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Key Change - Increment Value
Replies: 13
Views: 3031

We all have days like that...

svarChanged <== IF svarLastFieldB = In.FieldB THEN 0 ELSE 1
svarLastFieldB <== In.FieldB
svarCounter <== IF svarChanged THEN 1 ELSE svarCounter + 1
by ray.wurlod
Tue Jun 16, 2009 4:33 pm
Forum: IBM QualityStage
Topic: Standardization:Using the seq file extractd from xml
Replies: 9
Views: 9933

Please delete your duplicate post before anyone responds to it.
by ray.wurlod
Tue Jun 16, 2009 4:32 pm
Forum: General
Topic: Schedule Compiling batch script
Replies: 11
Views: 2842

How often do you need to check for uncompiled jobs?

There's only one way they can become uncompiled, and there's always a person present when that happens.
by ray.wurlod
Tue Jun 16, 2009 4:30 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: no sumarized records using Aggregator
Replies: 4
Views: 1640

This would be a valid result if each combination of the first eight columns in the source hashed file had only a single row associated with it.

You can check whether this is the case using an appropriate query, probaby with HAVING COUNT(*) > 1 as one of its clauses.
by ray.wurlod
Tue Jun 16, 2009 4:28 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to enable selection tab in hash file
Replies: 14
Views: 3481

It's only enabled if the Hashed File stage is the source for a stream link - not for a reference link.

And, as noted, it must be a hashed file (note - it's hashed, not hash) for which a VOC entry exists and the stage must refer to it through that VOC entry.
by ray.wurlod
Tue Jun 16, 2009 4:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DS_JOBOBJECTS was corrupted
Replies: 13
Views: 5797

It is ok to do the fix while jobs are running - DS_JOBOBJECTS contains only design-time information.

Do, however, heed the advice to back up the file before "fixing" it - the "fix" can in some circumstances truncate portions of the hashed file.
by ray.wurlod
Tue Jun 16, 2009 4:21 pm
Forum: General
Topic: Schedule Compiling batch script
Replies: 11
Views: 2842

Even easier is this approach. Use the Multiple Job Compile tool and check the "select only uncompiled jobs" check box.
by ray.wurlod
Tue Jun 16, 2009 4:14 pm
Forum: General
Topic: Sequencer Job
Replies: 3
Views: 1092

One of the Webinars earlier this year discussed Job Sequences, in particular processing multiple files with them.