Search found 137 matches

by G SHIVARANJANI
Thu Aug 09, 2007 3:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error while checking date
Replies: 6
Views: 1886

Try this:

If
StringToDate(DSLink3.Date,"%dd/%mm/%yyyy")[1,2] = '**' then 0 else 1

Maveric wrote:Use an If Then Else statement. if valid Then () Else default value. Something like that.
by G SHIVARANJANI
Wed Aug 08, 2007 6:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Appending a sequential file to rejected file (at src file)
Replies: 6
Views: 2595

Re: Appending a sequential file to rejected file (at src fil

I have used the funnel stage to append the reccords, As its just to see the reccords , I have taken the sequntial file ( to read the rejected records ) having one column with size 9999999 and varchar type. Hi, The Format for both the files is not same. one is a reject link file from a sequential fil...
by G SHIVARANJANI
Wed Aug 08, 2007 6:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to convert mm/dd/yyyy hh:mm:ss into CCYYMMDD
Replies: 6
Views: 1975

Re: thanks, but still one question

Sorry u need CCYYMMDD So Use this Way trim(SRC_DATE)['/',3,1]:Str("0", 2-Len(trim(SRC_DATE)['/',2,1])) : trim(SRC_DATE)['/',2,1]:Str("0", 2-Len(trim(SRC_DATE)['/',1,1])) : trim(SRC_DATE)['/',1,1] Use this way Str("0", 2-Len(trim(SRC_DATE)['/',1,1])) : trim(SRC_DATE)['/'...
by G SHIVARANJANI
Wed Aug 08, 2007 6:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to convert mm/dd/yyyy hh:mm:ss into CCYYMMDD
Replies: 6
Views: 1975

Re: thanks, but still one question

Use this way Str("0", 2-Len(trim(SRC_DATE)['/',1,1])) : trim(SRC_DATE)['/',1,1]:Str("0", 2-Len(trim(SRC_DATE)['/',2,1])) : trim(SRC_DATE)['/',2,1]:Str("0", 2-Len(trim(SRC_DATE)['/',3,1])) : trim(SRC_DATE)['/',3,1] Here SRC_DATE is the date field from source cheers You c...
by G SHIVARANJANI
Wed Aug 08, 2007 6:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Cannot view data in Sequential stage
Replies: 8
Views: 3419

Re: Cannot view data in Sequential stage

What is the source file used ? is that a csv file ? Please check if u have given the right delimiter for reccord and field. Hi all, Iam new to IBM Information Server.I just created 1 job containg one source a.d one target sequential file and 1 transformer. So when i run the job the target file is ge...
by G SHIVARANJANI
Mon Aug 06, 2007 6:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Appending a sequential file to rejected file (at src file)
Replies: 6
Views: 2595

Re: Appending a sequential file to rejected file (at src fil

Hi,

The Format for both the files is not same.

one is a reject link file from a sequential file and the second is from transformer n the third is the rejected reccords from table.
by G SHIVARANJANI
Fri Aug 03, 2007 6:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle - Jobs Hanging
Replies: 5
Views: 1262

Hi,

Once i got this problem Jobs got hanged up in RUN stage..

And that happened when i deleted the table and then left it without giving the commit command.

when i gave the commit command it worked fine.

Thanku
by G SHIVARANJANI
Fri Aug 03, 2007 6:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Appending a sequential file to rejected file (at src file)
Replies: 6
Views: 2595

Appending a sequential file to rejected file (at src file)

Hi, I have a source file which reads a csv file followed by a transformer and then oracle_enterprise table. I have put up a reject file from both source and from transformer; At source i have kept a reject link(this file collect the records which are short of commas) , and at transformer the records...
by G SHIVARANJANI
Mon Jul 30, 2007 10:07 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Records Drop Due to NULL
Replies: 14
Views: 3755

Hi Scorpion,

Thanks a lot its working now....

scorpion wrote:Hi Shivaranjani,

Try this may be it solves ur problem:

If IsNull(INP_1.Value) Then ""else(If Trim(INP_1.Value) =1 0r Trim(INP_1.Value) ='' then 0 else 1)


Cheers,
by G SHIVARANJANI
Mon Jul 30, 2007 9:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Records Drop Due to NULL
Replies: 14
Views: 3755

Hi,

Please let me know how to disable "operator combination"

thanku.
by G SHIVARANJANI
Mon Jul 30, 2007 9:05 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Records Drop Due to NULL
Replies: 14
Views: 3755

Actually i have put up a check for a field comming from source which is nullable: The transformer uses stagevariable as If NUM((NullToEmpty(INP_1.Value))) = 1 or NullToEmpty(INP_1.Value) = '' then 0 else 1 if this not used it do not give any warning if used it gives warning; and the source value INP...
by G SHIVARANJANI
Mon Jul 30, 2007 7:58 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Records Drop Due to NULL
Replies: 14
Views: 3755

Re: Handling Null values

Hi,

As the warning still persists,

the job is aborting if the number of warnings is greater than 50

Please suggest how can i remove this warning.
by G SHIVARANJANI
Thu Jul 26, 2007 10:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Records Drop Due to NULL
Replies: 14
Views: 3755

Please suggest how to remove this warning; Here is the derivation for value column: before:if NUM(Trim((INP_1.Value))) = 1 or trim((INP_1.Value)) = '' Then 0 else 1 AND Now: if NUM(Trim(NULLTOEMPTY(INP_1.Value))) = 1 or trim(NULLTOEMPTY(INP_1.Value)) = '' Then 0 else 1 The records are not getting dr...
by G SHIVARANJANI
Thu Jul 26, 2007 8:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Records Drop Due to NULL
Replies: 14
Views: 3755

Here is the derivation for value column: before:if NUM(Trim((INP_1.Value))) = 1 or trim((INP_1.Value)) = '' Then 0 else 1 AND Now: if NUM(Trim(NULLTOEMPTY(INP_1.Value))) = 1 or trim(NULLTOEMPTY(INP_1.Value)) = '' Then 0 else 1 The records are not getting dropped but still the warning is there saying...