Search found 180 matches

by rafik2k
Fri Jun 08, 2007 7:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date to char transformation
Replies: 12
Views: 6010

Use convert or ereplace function in the transformer to remove "-" character from the input date like following

Code: Select all

Convert("-", "", DSLink3.DATE1) 
by rafik2k
Thu Jun 07, 2007 4:19 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Hash file question
Replies: 9
Views: 2729

Hash file question

One basic question related to hash file: In which scenario should we set Pre-load file to Memory-Enabled. I mean to say, is it wise to set above property when hash file is big? In my case, in the sequence jobs are running parallel and some of the jobs using hash files as well. Need to know best prac...
by rafik2k
Thu Jun 07, 2007 4:15 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Error with Date
Replies: 6
Views: 1836

rafik2k wrote:Use

Code: Select all

Oconv((Iconv(Arg1,"D-YMD")),"D-YMD[4,2,2]")
function to convert it into db2 date format.
Where Arg1= COLL_DT
by rafik2k
Thu Jun 07, 2007 4:12 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Error with Date
Replies: 6
Views: 1836

Use

Code: Select all

Oconv((Iconv(Arg1,"D-YMD")),"D-YMD[4,2,2]")
function to convert it into db2 date format.
by rafik2k
Thu May 31, 2007 2:48 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reading parameter from csv file
Replies: 5
Views: 2136

WoMaWil wrote:Hi Rafik from 2nd (k)lasse,

you cannot load or change parameters after your job is started. That you will learn in future in 3rd (k)lasse.

What you can do is:

Write a sequence

I didn't get you. Could you clearify the same.

BTW what's (k)lasse????
by rafik2k
Thu May 31, 2007 1:31 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reading parameter from csv file
Replies: 5
Views: 2136

Reading parameter from csv file

Hi All, Can anyone of you give hints how to read parameter from csv file. I have value like this Parameter name value etl_run_date '2004-05-01' etl_run_date '2005-05-01' etl_run_date '2006-05-01' etl_run_date '2007-05-01' For first run, i want to use first parameter value, for second run i want to u...
by rafik2k
Mon May 28, 2007 6:56 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Counting the number of rows extracted
Replies: 12
Views: 4118

Create a server routine,
specify its type as Before/After subroutine from drop down menu.


once you compile it, it will be available after job subroutine in the Job properties page
by rafik2k
Mon May 28, 2007 6:23 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Counting the number of rows extracted
Replies: 12
Views: 4118

Create one after job subroutine

use the basic function to get rowcount passing through the each links.

Result=

Code: Select all

DSGetLinkInfo (JobHandle, StageName, LinkName, InfoType)
, Give InfoType as DSJ.LINKROWCOUNT

Compare the result and call DSLogInfo to log the custom message.
by rafik2k
Mon May 28, 2007 6:00 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sort
Replies: 5
Views: 1541

If you don't want use sort stage, then treat the unsorted table as dummy table. Create another new table with the same structure.

Select all columns from dummy table as order by clause in asc or desc and pass as it is into target new table.
by rafik2k
Mon May 28, 2007 5:48 am
Forum: General
Topic: Use of index function
Replies: 18
Views: 5445

Is your job parallel or server? 0 means it is not finding "." in the input string. For server job, try writing small subroutine and check like findDot Position = Index(Arg1, ".", 1) Ans = Position call the subroutine in column derivation of occurance as findDot(file_name), though...
by rafik2k
Tue May 22, 2007 3:11 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Poor performance of Hash file?
Replies: 8
Views: 1806

How complex is transformation rule in TFM2 and TFM3?
May be complex rule is eating your speed.
by rafik2k
Tue May 22, 2007 3:07 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Poor performance of Hash file?
Replies: 8
Views: 1806

How complex is transformation rule in TFM2 and TFM3?
May be complex rule is eating your speed.
by rafik2k
Tue May 22, 2007 2:57 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using lookups
Replies: 13
Views: 3860

I am still confused in your requirement. If need all records from inventory and their corresponding matching records from master table? if yes then your following sql will work perfect. select pinv.*,pdesc.description from product_description pdesc, product_inventory pinv where pdesc.pcode = pinv.pc...
by rafik2k
Tue May 22, 2007 2:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using lookups
Replies: 13
Views: 3860

While creating hash file from table, create pcode as key.

In transformer join both table using pcode.

Just drag pcode from primary link and drop it into derivation of reference link in the transformer.
Then pass required column into outpu link
by rafik2k
Tue May 22, 2007 2:09 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Current Timestamp in to DB2
Replies: 10
Views: 3883

DSguru2B wrote:Same thing :wink:
DS Guru Ji,
You need zoom lens to check that :lol: