Search found 53125 matches

by ray.wurlod
Thu May 15, 2014 6:10 pm
Forum: IBM QualityStage
Topic: Remove Duplicate Title
Replies: 2
Views: 3072

Although it's double-handling to some extent, the following should work.

Code: Select all

P | P | **
COPY [1] temp1
COPY [2] temp2

P | P | ** | [ temp1 = temp2 ]
RETYPE [1] 0
by ray.wurlod
Thu May 15, 2014 5:08 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimals in RCP
Replies: 12
Views: 4110

Are you able to share this routine? From which log are you pulling the metadata?
by ray.wurlod
Thu May 15, 2014 2:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimals in RCP
Replies: 12
Views: 4110

Or you can use CAST if your database doesn't support the syntax that elsont gave.

Code: Select all

SELECT CAST(PAY_AMT AS VARCHAR(9)) AS PAY_AMT_STRING FROM tablename;
If that has leading zeroes, space or trailing "." you can remove those with TRIM() functions in the SQL.
by ray.wurlod
Thu May 15, 2014 2:45 pm
Forum: General
Topic: Last Occurrence in String
Replies: 3
Views: 1492

You can use the UNIX command basename for this particular task (getting the file name from a pathname).
by ray.wurlod
Thu May 15, 2014 5:06 am
Forum: General
Topic: find select queries of odbc connector stages from repository
Replies: 11
Views: 2101

OLETYPE will be INPIN or OUTPIN. The field locations vary with different stage types. You'll need to do some detective work, perhaps using the LIST.ITEM command.
by ray.wurlod
Thu May 15, 2014 1:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date Conversion?
Replies: 3
Views: 1809

Use functions MonthDayFromDate(), MonthFromDate() and YearFromDate() to extract the components, do your math, then use DateFromComponents() function to re-assemble the date.
by ray.wurlod
Thu May 15, 2014 1:09 am
Forum: General
Topic: find select queries of odbc connector stages from repository
Replies: 11
Views: 2101

They're stored in the relevant PIN records within DS_JOBOBJECTS.

They can also be found in RT_CONFIG and in the XMETA database.
by ray.wurlod
Wed May 14, 2014 7:32 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: binding input interface field error
Replies: 5
Views: 1897

What do the (string) dates look like in your source data? In particular, are they strictly in YYYY-MM-DD format? In any case your expressions don't guarantee a date. You need StringToDate() applied to the default values as well. And lose the trailing space on your string format string. If IsNull(lk_...
by ray.wurlod
Wed May 14, 2014 3:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parallel job reports failure (code 256)
Replies: 5
Views: 4164

What exactly is a DB2 USB Load stage? Does it load onto a USB device?
by ray.wurlod
Wed May 14, 2014 3:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: binding input interface field error
Replies: 5
Views: 1897

The problem is with GEO_END_DT, not with GEO_START_DT. Transform that column similarly.
by ray.wurlod
Wed May 14, 2014 3:26 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Unable to see the non printable characters
Replies: 6
Views: 2383

In the Transformer stage, use Field(InLink.Line, Char(26), 1, 1) and similar.

Performance tip: initialize stage variable to Char(26) and use the stage variable name as the second argument of the Field() function - that way the Char() function is evaluated only once.
by ray.wurlod
Wed May 14, 2014 3:24 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimals in RCP
Replies: 12
Views: 4110

I know what you're trying to do, and there's no solution in DataStage other than naming the columns from which you want to strip the zeroes.

There is a solution in the SELECT statement.
by ray.wurlod
Wed May 14, 2014 3:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Datastage 9.1.2 Connector Stage Issue
Replies: 13
Views: 11142

You can use a Transformer stage in a server job as a row generator. Make sure it has something to do (e.g. evaluate a stage variable), and constrain the output link with something like @OUTROWNUM <= 10000.
by ray.wurlod
Wed May 14, 2014 3:17 pm
Forum: General
Topic: Cycling Infosphere Services
Replies: 5
Views: 1300

When you log in to DataStage, is the name of the services tier (the one with the 9080 port number) the same as the name of the engine on which the project exists?
by ray.wurlod
Tue May 13, 2014 7:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: ODBC Connector Stage - Transaction handling
Replies: 4
Views: 2554

Not within DataStage.

You could create a stored procedure that does this, and invoke that from your DataStage job.