Search found 210 matches
- Tue Apr 14, 2009 7:36 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Routine returning invalid results
- Replies: 12
- Views: 7464
Take your Routine and paste the logic into a Batch:: style job. Add DSLogInfo() lines to write output to the job log. For developing long routines or functions this can be a useful device. Once you figure out where your logic goes bad, you'll be able to fix your actual Routine. Thanks Ken, I'll try...
- Tue Apr 14, 2009 7:31 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Routine returning invalid results
- Replies: 12
- Views: 7464
- Tue Apr 14, 2009 9:22 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Routine returning invalid results
- Replies: 12
- Views: 7464
- Tue Apr 14, 2009 8:32 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Routine returning invalid results
- Replies: 12
- Views: 7464
Routine returning invalid results
*** I've edited this post to include the entire routine and added the log results *** Hi, This post is related to http://www.dsxchange.com/viewtopic.php?t=126507. Scroll down to my second post in that thread. First of all, apologies for the long post. I'd considered putting the code on Google docs,...
- Tue Apr 14, 2009 12:28 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Load entire data record into array and process in routine
- Replies: 5
- Views: 2894
- Mon Apr 13, 2009 11:28 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Load entire data record into array and process in routine
- Replies: 5
- Views: 2894
- Mon Apr 13, 2009 10:25 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Load entire data record into array and process in routine
- Replies: 5
- Views: 2894
Load entire data record into array and process in routine
Hi, I have a job where I need to do data validations on about 50 columns, and reject the row if any column fails validation. My current approach is something like (incoming link is "Extract"): Stage Variables C1-C50, plus Audit and InvalidRecord C1: If Not(Extract.Var1 Matches "FOO&qu...
- Mon Apr 13, 2009 7:30 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: checking file existence, moving and writing to target table
- Replies: 5
- Views: 3144
- Mon Apr 13, 2009 4:19 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: calling scripts using Execsh
- Replies: 8
- Views: 2650
In my script I am saving the wordcounts of CSV files to /opt/IBM/count_<<yesterdays date>.txt and i need to call this as the input file in the sequential stage. seq.stage--->Trf---->ODBC.Stage. i want to use before sub routine and the script will give me the file in the above format. but i want to ...
- Mon Apr 13, 2009 3:57 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: setting a peek stage in a developed job
- Replies: 5
- Views: 2783
What's nice about the transformer stage is it's easy to drag columns from the input to output links and vice versa. When I'm working with a stage that doesn't support this, what works for me is to save the metadata from the desired (old) link, then copying that to the new link. So, in this scenario,...
- Thu Apr 09, 2009 12:08 am
- Forum: General
- Topic: How to detect end of file
- Replies: 2
- Views: 1420
Thanks Craig. The question was in relation to viewtopic.php?t=126366&highlight=.
My workaround was essentially the 'pre-count' approach, joining the table back with itself based on the RowNum.
My workaround was essentially the 'pre-count' approach, joining the table back with itself based on the RowNum.
- Wed Apr 08, 2009 6:48 pm
- Forum: General
- Topic: Reading sequential file empty columns NULL vs. Empty String
- Replies: 8
- Views: 7970
Several approaches: 1. Process the input line as one long string. Which I'm already doing to validate that the source file contains required number of columns. For this conversion, it needs to be exactly tilde-space{1,}-tilde , to tilde-tilde . Other fields may have one or more embedded spaces which...
- Wed Apr 08, 2009 5:16 pm
- Forum: General
- Topic: Reading sequential file empty columns NULL vs. Empty String
- Replies: 8
- Views: 7970
Thanks. Does DS have the equivalent of:
i.e. replace tilde-one or more spaces-tilde to tilde-tilde, in a transformer? Otherwise I'd use a sed script to pre-process the file.
Code: Select all
s/~\s+~/~~/g
- Wed Apr 08, 2009 9:34 am
- Forum: General
- Topic: Reading sequential file empty columns NULL vs. Empty String
- Replies: 8
- Views: 7970
Revisiting this topic... If my tilde delimited sequential file has data like: FOO~ ~BAR~ ~ ~BLAH are there settings in the format tab of the sequential file stage that will convert the embedded spaces to empty string, i.e. '' rather than ' ' In the format tab of my sequential stage, I'm trying: LHS:...
- Wed Apr 08, 2009 4:12 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Need help with pivoting columns
- Replies: 13
- Views: 7268
or simply sort the incoming data and append to existing using stage variable. Something like sort input -> tx -> hashed file and in tx do yourStgField = if (prevKey = Key) then inField Else yourStgField : delim : inField where yourStgField is a stage variable. Sainath's reply gave me a few ideas......