Search found 53125 matches

by ray.wurlod
Mon Jun 01, 2015 3:13 pm
Forum: General
Topic: Add Parameter - Script
Replies: 8
Views: 2620

It should take about a minute per job to do manually, so you could do all 200 in about half a day. This is almost certainly less time than you would spend faffing around creating scripts.
by ray.wurlod
Mon Jun 01, 2015 3:11 pm
Forum: General
Topic: Calculating Distance between Latitude/Longitude points
Replies: 8
Views: 4543

You also need to specify whether this is a straight line distance or a great circle (that is, over the surface of the earth, which is curved). There are web services out there that can perform this calculation.
by ray.wurlod
Mon Jun 01, 2015 3:07 pm
Forum: Information Analyzer (formerly ProfileStage)
Topic: Column analysis Error
Replies: 3
Views: 2687

Perhaps also choose a sample for your initial analysis, and select the option not to profile columns over 500 characters.

As they put it in the training class for IA: "don't try to boil the ocean".
by ray.wurlod
Sun May 31, 2015 9:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help to generate schema files dynamically for txt files
Replies: 15
Views: 7103

My solution would use two jobs - one to re-order the columns into the standard format, and the other to process that file. The first job would read the file as a single VarChar column, including reading the heading row as data (do not check the "first line is column headings check box), and sto...
by ray.wurlod
Sun May 31, 2015 4:54 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help to generate schema files dynamically for txt files
Replies: 15
Views: 7103

Do the files have column headings? (If yes, that will make the task a lot easier).

That said, I don't believe there's going to be an easy "one job" solution. You will almost certainly be up for doing some coding, either a routine or a Build stage.
by ray.wurlod
Sun May 31, 2015 4:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help to generate schema files dynamically for txt files
Replies: 15
Views: 7103

Do the files have column headings? (If yes, that will make the task a lot easier).
by ray.wurlod
Fri May 29, 2015 4:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error in Reading ASCII file
Replies: 4
Views: 2806

You might also like to check whether the file genuinely has DOS-style line terminators, as mentioned in the schema file.
by ray.wurlod
Fri May 29, 2015 4:03 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Table action as truncate Vs truncate statement in before SQL
Replies: 9
Views: 5080

Designed that way because not every database supports a TRUNCATE statement.
by ray.wurlod
Fri May 29, 2015 3:59 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: StringToTimestamp convert
Replies: 3
Views: 1795

It will when your string isn't a valid timestamp.
by ray.wurlod
Fri May 29, 2015 1:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: C++ routine vs. Convert function performance
Replies: 5
Views: 2158

You can improve the performance of the posted Convert() function by initializing a stage variable to the result of the concatenated Char() functions, and not further deriving the stage variable. That way, you aren't re-evaluating the same thing for every row. Your expression then becomes Convert(svC...
by ray.wurlod
Fri May 29, 2015 1:13 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: StringToTimestamp convert
Replies: 3
Views: 1795

You will use explicit conversion, because there is no implicit conversion of string to timestamp.
by ray.wurlod
Thu May 28, 2015 5:30 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Exception while invoking a webservice
Replies: 2
Views: 1860

Use a test utility such as SOAPui to test the invocation, and to report what comes back in the fault report. The fault information can also be captured in the Web Service Transformer stage, but using SOAPui eliminates anything in DataStage from being the culprit.
by ray.wurlod
Thu May 28, 2015 5:26 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify error converting Timestamp(Microseconds) to string
Replies: 3
Views: 2401

You could try nested functions, which sometimes work and sometimes doesn't in the Modify stage. Otherwise you could use two Modify stages; these cannot be adjacent, but you can put a Copy stage between them. And, yes, do note that to include microseconds your string will need to be at least 26 chara...
by ray.wurlod
Thu May 28, 2015 3:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Invalid Julian Day with Modify
Replies: 3
Views: 1985

A specification that specifies that the output is a string must also specify the size of that string (for Char data type) or the maximum size of the string (for VarChar data type).
by ray.wurlod
Thu May 28, 2015 3:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Invalid Julian Day with Modify
Replies: 3
Views: 1985

Can you please post all the specifications in your Modify stage?

Also, please verify that the metadata for any column mentioned in a KEEP specification is identical on input and output link?