Search found 69 matches

by ganesh123
Wed Mar 14, 2007 12:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: File Exists in Directory
Replies: 18
Views: 5728

Ok then I guess you should do everything in Shell script itself.
first check the filename if it exists continue else send email.
by ganesh123
Wed Mar 14, 2007 12:22 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: File Exists in Directory
Replies: 18
Views: 5728

If its same hardcore it in parameter in job properties and then select the before jobsubroutine "DSwaitfofile".

Add this job in seqencer with Email notificaiton activity.
by ganesh123
Wed Mar 14, 2007 12:19 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: File Exists in Directory
Replies: 18
Views: 5728

Is the sorce filename same all the time ?
by ganesh123
Wed Mar 14, 2007 9:54 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Is OracleClient(9i) required to access ora9i stage in DS?
Replies: 1
Views: 1366

Your can find your answer from this thread -

viewtopic.php?t=108355

As Craig suggested, yes you can do if you have Ora9i client on DS server.
by ganesh123
Tue Mar 13, 2007 9:41 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: USING XML_INPUT STAGE
Replies: 2
Views: 1462

I guess you have already posted the thread.
by ganesh123
Mon Mar 12, 2007 11:44 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: custom SQL in ODBC satge
Replies: 9
Views: 3355

Why you want to do custom SQL ?

Use generated SQL and use a constraint in TX..

Code: Select all

sv1=right(in.week_code,2)
sv2= if sv1>38 and sv1<53 then 1 else 0
Use this as constraint in output link.
by ganesh123
Mon Mar 12, 2007 10:02 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Constraint to abort job
Replies: 19
Views: 6222

The condition is col1 = col2


ie: if col1 <> col2 then ABORT JOB
Thats why we gave you that soln.

make a stage variable

Code: Select all

sv=if @INROWNUM<>@OUTROWNUM then UtilitytoAbort("Message") else 1
use that in constraint in TX
by ganesh123
Fri Mar 09, 2007 2:12 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Constraint to abort job
Replies: 19
Views: 6222

DHANYAVAD SIRJI :D
by ganesh123
Fri Mar 09, 2007 1:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Constraint to abort job
Replies: 19
Views: 6222

I guess I am not hacking the topic :)
So Craig something like this in Shell script ?

Code: Select all

count= wc -l bad.file
if ($count>0)
then
ABORT
else
continue
fi
Which utility or function of DS has to be called in ABORT in above code?
by ganesh123
Fri Mar 09, 2007 1:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Constraint to abort job
Replies: 19
Views: 6222

Craig is there any option that if we want to collect all the rejected rows in a separate file and then do ABORT later after collecting all rows ?

In this way we can know how many and which rows are bad.... :roll:
by ganesh123
Fri Mar 09, 2007 12:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Constraint to abort job
Replies: 19
Views: 6222

Use a reject link in your job going to a Seq file. If data comes in Seq file abort job using UtilityAbortToLog(%AbortMessage%) in TX
by ganesh123
Fri Mar 09, 2007 11:47 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: header and tailer sequential file
Replies: 7
Views: 1901

use:

Code: Select all

sed '1,3 d' f | sed -e :a -e '$d;N;2,4ba' -e 'P;D'
by ganesh123
Thu Mar 08, 2007 4:59 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Get DENSE RANK in a grouped data
Replies: 26
Views: 10522

DSGuru2B can you show it using RowProcCompareWithPreviousValue I am doing the following but not getting : 1)current=read.ST:read.CITY:read.ZIP 2)sv1=RowProcCompareWithPreviousValue(current) 3)sv2=if sv1 then RowProcCompareWithPreviousValue(read.SALES) else Rank=1 4)Rank=if sv2 then sv2 else Rank+1
by ganesh123
Thu Mar 08, 2007 1:05 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Get DENSE RANK in a grouped data
Replies: 26
Views: 10522

Use a stage variable to remember the concatenated string State:City:Zip of the previous row and compare it with the current row's concatenated value. You will use the RowProcCompareWithPreviousValue function available in the SDK to achieve this. In that case also concate SALES_NUMBER and compare wi...
by ganesh123
Thu Mar 08, 2007 12:18 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Get DENSE RANK in a grouped data
Replies: 26
Views: 10522

You need to give some more information about how you give RANKS ? Like based on what conditions ? The output you shown is confusing. We cannot guess the requirement..... :?: