Search found 382 matches

by chucksmith
Thu Jan 10, 2008 5:39 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Controlling job flow by counting rows in hashed files - ???
Replies: 9
Views: 3153

I have a nice routine that does the same, for anyone who is interested. I usually use it in job sequences, but it has been used as a derivation.

You will find it on the DataStage Tools page of www.anotheritco.com .
by chucksmith
Tue Jan 01, 2008 6:34 pm
Forum: General
Topic: Job parameters
Replies: 6
Views: 2152

Take a look at my Jobs and routines to integrate a parameter table into a sequence. You will find it on the DataStage Tools page of www.anotheritco.com .
by chucksmith
Sat Dec 29, 2007 7:44 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sub sequence aborted but the main sequence didn't
Replies: 7
Views: 4147

Verify in your master sequence that the activity stage calling the sub sequence has a failed trigger and does NOT have an unconditional trigger. The default trigger colors of DataStage Designer do not give enough visual clues. I suggest changing the wraning trigger to yellow, and the otherwise trigg...
by chucksmith
Sat Dec 29, 2007 7:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Passing parameter to uvsh select query in shell script
Replies: 5
Views: 4128

I find this type of task easier to do in a routine, then call that routine in a routine activity stage from a job sequence or a derivation in a stage variable in a server transform stage.

In the routine, build your command, then use the basic EXECUTE statement to run it.
by chucksmith
Thu Dec 20, 2007 6:07 pm
Forum: General
Topic: Holiday giving...
Replies: 0
Views: 809

Holiday giving...

Happy holidays... I have posted three new tools on the DataStage Tools page of www.anotheritco.com . One is a routine that one passes a job name, active stage name, and link name. The link's row count is returned. Another is a set of jobs and routines, with a sample sequence, that I use to get, set,...
by chucksmith
Fri Oct 12, 2007 12:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: SQL SERVER - Character missing in Datasatge
Replies: 5
Views: 2950

Could this be a data type issue, such as moving a CHAR column to a VARCHAR column?
by chucksmith
Sun Sep 23, 2007 7:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: pivoting data in rows to column
Replies: 9
Views: 21652

This is not too difficult. In a transform stage set up four stage variables: ThisRowKey, NewKey, PrevRowKey, and MoreData. The derivation for ThisRowKey should be the columns that uniquely identify the rows you want to group. The derivation for NewKey is If ThisRowKey <> PrevRowKey Then @TRUE Else @...
by chucksmith
Wed Jul 25, 2007 4:44 pm
Forum: Data Integration
Topic: IBM Information Server V8
Replies: 1
Views: 16081

Review this page:

Code: Select all

http://www-1.ibm.com/support/docview.wss?uid=swg27008923
by chucksmith
Thu May 31, 2007 4:21 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Question regarding Sequences
Replies: 11
Views: 4014

In general, you may want to have four triggers from each job activity stage: a failed, two warnings, and an otherwise. Also, each job activity stage should be paired with an "ANY" sequencer stage. All of the failed triggers from each job activity stage should be connect to an "ANY&quo...
by chucksmith
Thu May 31, 2007 3:37 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: executing a bunch of SQL Statements
Replies: 7
Views: 1987

If your SQL statements really have nothing to do with the row you are passing to the DRS stage, then do not pass any rows. Set the output constraint to @FALSE, and put you SQL statements on the after SQL tab.
by chucksmith
Thu May 31, 2007 3:27 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Approach?
Replies: 3
Views: 2114

You may be able to use the before and after SQL tabs in a Dynamic Relational stage. Create a simple job that is a transform stage liked to a DRS stage. In the transform stage, add a stage variable and set the constraint on the output link to @FALSE. In the DRS stage, you will need some table informa...
by chucksmith
Wed May 02, 2007 5:17 pm
Forum: General
Topic: Incremental load with no key field at source
Replies: 7
Views: 4359

If you trust your load portion of ETL, you can compare yesterday's full load file with today's full load file to identify inserts, updates, and deletes.

Look at the unix "comm" command to compare your load files.
by chucksmith
Fri Apr 06, 2007 8:58 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Schedule not kicking off
Replies: 2
Views: 1234

I have recently seen this happen if the user id the job is scheduled to run as does not have appropriate permissions to the project directory.
by chucksmith
Fri Apr 06, 2007 8:55 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Write and Read the same hash file in same job?
Replies: 6
Views: 2712

Do you think the order of the output links in the first transform stage is important? If so, I suggest you order your output links to ensure that the write to the hashed file occurs before the passing of the row from the first transform to the second.
by chucksmith
Tue Nov 14, 2006 12:22 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Attaching timestamp to the file name
Replies: 2
Views: 1362

After the job finishes, use a job sequence RoutineActivity stage with ExecDOS or ExecSH (or Execute Command stage) to run an operating system rename command. Using a UserVariableActivity stage, you can easily build the destination file name with dates and time available as DataStage macros. For exam...