Search found 53125 matches

by ray.wurlod
Tue Sep 30, 2003 5:17 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Zeros Left
Replies: 2
Views: 1188

An alternative for the FMT function is to use a background. FMT(number, "R%9") lays down a background of nine zeroes then superimposes the value of number, right justified, over that background. I believe this is marginally more efficient (in terms of machine cycles) than using a fill character. Ray...
by ray.wurlod
Tue Sep 30, 2003 5:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to generate a dynamic file name
Replies: 9
Views: 2455

In general, no. The Sequential File stage works with files. However, if you need to create a directory you can set up ExecSH (or ExecDOS on a Windows platform) as a before-stage subroutine with an appropriate mkdir command in the InputArg field. You can use job parameters and macros here too. You mi...
by ray.wurlod
Tue Sep 30, 2003 5:04 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Rejecting Rows with Required Data Missing
Replies: 2
Views: 1046

By default the Sequential File stage will treat a zero length string ("") as NULL. This behaviour can be overridden on the Format tab of the stage. On the Columns tab, if you scroll the grid to the right, you will discover that you can affect this behaviour on a column by column basis, as well as se...
by ray.wurlod
Tue Sep 30, 2003 4:55 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: $ENV parameter value
Replies: 9
Views: 2281

quote: Originally posted by Ray.Wurlod [br]If you're running Bourne shell, you will need to export the environment variable. To find out what shell you're using, echo $SHELL - the Bourne shell returns /bin/sh To set and export the environment variable, set its value then use the export command. ENV=...
by ray.wurlod
Tue Sep 30, 2003 4:54 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: $ENV parameter value
Replies: 9
Views: 2281

If you're running Bourne shell, you will need to export the environment variable. To find out what shell you're using, echo $SHELL To set and export the environment variable, set its value then use the export command. ENV=New value for this variable export ENV Ray Wurlod Education and Consulting Ser...
by ray.wurlod
Mon Sep 29, 2003 6:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: dynamic query based on Transformer value
Replies: 3
Views: 1730

A solution with two Transformer stages is the easiest way to solve this particular problem. One lookup is performed by each Transformer stage. The reference key expression for the second lookup is built from values from either or both of the stream input or the first lookup. It is possible, of cours...
by ray.wurlod
Mon Sep 29, 2003 5:55 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: XML question
Replies: 3
Views: 939

If the XML document in each line isn't too long, perhaps a DIY approach where you have a Sequential File stage writing a single column that contains the document, the document having been produced by an expression in a preceding Transformer stage? (An obviously quick response without a lot of though...
by ray.wurlod
Mon Sep 29, 2003 5:50 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to generate a dynamic file name
Replies: 9
Views: 2455

The syntax looks OK, provided that the references to job parameters or macros are properly spelled and cased. The parameter type can be String or Pathname. I'd recommend Pathname, because (a) you can then locate the text file anywhere in the file system, and (b) the operator gets a browser when bein...
by ray.wurlod
Mon Sep 29, 2003 5:47 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Use OS Level Authentication
Replies: 5
Views: 2311

Next time you've got one of these stages open, click on the Help button. The description provided there is quite reasonable, imho.

Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
by ray.wurlod
Mon Sep 29, 2003 5:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Issu with User Generated SQL DS6.0R3
Replies: 7
Views: 1815

Does your DataStage job deliver exactly the same number of columns (52) as there are parameter markers in the query? A mismatch here is the most usual cause of "parameter not bound" messages being generated.
by ray.wurlod
Mon Sep 29, 2003 5:40 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Why ORAOCI 9 ?
Replies: 1
Views: 1194

Plug-in stages have their own versioning strategy, and do not depend on the DataStage version number. Plug-in stages written correctly according to the API are guaranteed to be forwards compatible. Right now I don't have access to a DataStage machine, perhaps someone with version 7 could post the ve...
by ray.wurlod
Mon Sep 29, 2003 5:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Does DataStage support Excel and SQLServer?
Replies: 3
Views: 1396

Note that the ODBC driver for Excel regards worksheets as system tables. [:0] This means:
(a) you must check "system tables" when importing metadata
(b) the "table names" come in prefixed by "$"

Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
by ray.wurlod
Mon Sep 29, 2003 1:43 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to run multiple instances of a single job
Replies: 10
Views: 2242

As the first argument to DSAttachJob specify the job name, a dot and the invocation ID. For example: JobName = "TestJob" InvocationID = 1 ; * generate this however you like UniqueJobName = JobName : "." : InvocationID hJob1 = DSAttachJob(UniqueJobName, DSJ.ERRWARN) * Set parameter values for invocat...
by ray.wurlod
Sun Sep 28, 2003 8:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Data Access Methods
Replies: 6
Views: 1667

In fact part of installing the DS 7.0 client is installing .NET framework if it's not already in place!

Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
by ray.wurlod
Sat Sep 27, 2003 7:17 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing an array as parameter
Replies: 13
Views: 2874

There is a small logic fault in Ken's code, which will prevent it from working. LOCATE searches for a "whole element" match; as soon as you add a second value to the field, LOCATE won't find the first value. One alternative is to use FIND rather than LOCATE. The other alternative is to use two field...