Search found 3329 matches

by Sainath.Srinivasan
Tue Jan 27, 2009 9:44 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: custom operator
Replies: 8
Views: 1634

The code is not in a single tab. You can see the flow in logic tab.

Btw, why do you intend to view / change the code?
by Sainath.Srinivasan
Tue Jan 27, 2009 9:33 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Is Wait for file activity Stage used only for static file?
Replies: 3
Views: 1238

Or use parameters to substitute when you know the name
by Sainath.Srinivasan
Mon Jan 26, 2009 4:31 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Custom stages
Replies: 2
Views: 1213

You can achieve the same from existing operators (e.g. using 2 agg stage) or db functions.

Before building new operators you must consider how the data is to flow in and out.
by Sainath.Srinivasan
Thu Jan 15, 2009 10:58 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: last day of the month
Replies: 11
Views: 3074

You are correct. The year is mandatory.

The solution is assuming that the user knows which year they are working on. They may not be knowing the month alone. Otherwise I do not see any business purpose.
by Sainath.Srinivasan
Thu Jan 15, 2009 10:51 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: last day of the month
Replies: 11
Views: 3074

The "mod + 1" will handle that.
by Sainath.Srinivasan
Thu Jan 15, 2009 9:43 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: last day of the month
Replies: 11
Views: 3074

The function will return only one value.

I do not have Premium Membership. So can't see your posting in full.
by Sainath.Srinivasan
Thu Jan 15, 2009 9:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: last day of the month
Replies: 11
Views: 3074

I will find the next month (i.e. 11 + 1 = 12) and take first date minus 1.

In short

Code: Select all

ToDate('01-' : Mod(inputMM, 12) + 1 : '- ' : inputYYYY) - 1
and then convert the result to your required format.
by Sainath.Srinivasan
Thu Jan 15, 2009 9:10 am
Forum: General
Topic: String Comparison
Replies: 1
Views: 752

Code: Select all

If Convert(field[1,1],'',field) = '' and len(field) = 6 
then "6 same chars" 
else "not 6 same chars"
by Sainath.Srinivasan
Thu Jan 15, 2009 6:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Trim(NulltoEmpty(priorSnapshot2.EMPNUM))
Replies: 3
Views: 2254

By writing a NullToEmpty transformation
by Sainath.Srinivasan
Tue Jan 13, 2009 5:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to do in datasatge
Replies: 9
Views: 1943

Or use quality stage which does exactly what you need.
by Sainath.Srinivasan
Tue Jan 13, 2009 5:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Scheduling a job for executing continuously
Replies: 4
Views: 1960

Are you sure that your job will finish within the 30 mins? What if it over-runs?

In the sequencer, you can make the job sleep for "30 - x" seconds, where x is computed using the job start and finish time.

Alternatively you can make your input read a pipe making it realtime load.
by Sainath.Srinivasan
Mon Jan 12, 2009 10:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Abort Sequence after Some time
Replies: 10
Views: 2655

Personally I will do a timing on the jobs and raise alarm of anything behind schedule. For your requirement.... Split your seq start to call a sleep activity until 7:30 and join it to output link from last stage into a sequence stage. Output link of seq stage pointing to kill anything still running....
by Sainath.Srinivasan
Mon Jan 05, 2009 11:10 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: need a help on job design
Replies: 16
Views: 5814

Split the phone into two columns and pass through aggregator to max
by Sainath.Srinivasan
Wed Dec 31, 2008 3:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Variable length records loading to multiple tables
Replies: 11
Views: 2522

In simple terms, create the output with all possible columns and map the source.