Search found 47 matches

by trammohan
Thu Jun 21, 2012 9:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to get last value in each row
Replies: 7
Views: 3767

DSLink8.val[ Len(Trim(DSLink8.val )),1]
by trammohan
Tue Nov 09, 2010 10:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sybase OC Stage with multiple read links
Replies: 4
Views: 2452

Sybase OC Stage with multiple read links

Hi, When I use Sybase OC with multiple read links ( to read data from mltiple tables with same Database ), Job is running successfully with this warning Warning Sybase_OC_642: When checking operator: Passive stages should have either one input link or one output link. Other configurations may run, b...
by trammohan
Fri Sep 12, 2008 1:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Serching a job
Replies: 4
Views: 2449

try
dssearch -ljobs -matches -subcategories sub -oc -oj dstage Job*

at UNIX command level....
by trammohan
Tue Apr 08, 2008 7:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: IsValid() problems with non-standard dates
Replies: 21
Views: 8316

Try this
IsValid("date", StringToDate(DECTOSTRNGAC,"%yyyy%mm%dd"))
by trammohan
Thu Apr 03, 2008 2:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Any date validate function
Replies: 2
Views: 1837

try this one

IsValid("date",Str)
by trammohan
Thu Mar 27, 2008 1:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: IsValid() problems with non-standard dates
Replies: 21
Views: 8316

Hi,

First if the input str length <> 7 ... throw an exception else IsValid () works fine.....
by trammohan
Thu Mar 27, 2008 12:54 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: wait-for-file
Replies: 9
Views: 4131

Use Start loop and End loop stages in your job sequence and set loop for 10 times i.e from 1 to 10.... and wait stage for 30 minuters... Curious how this is any different from simply setting the timeout to 5 hours and waiting once? :? Input file may appear any time between 0 to 5 hrs.... Let us say...
by trammohan
Thu Mar 27, 2008 12:43 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: wait-for-file
Replies: 9
Views: 4131

Use Start loop and End loop stages in your job sequence and set loop for 10 times i.e from 1 to 10.... and wait stage for 30 minuters...
by trammohan
Thu Mar 27, 2008 12:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: IsValid() problems with non-standard dates
Replies: 21
Views: 8316

Try this

datestr="2008002"

IsValid("date",StringToDate(datestr,"%yyyy%ddd"))

first parameter is "date"
by trammohan
Thu Mar 27, 2008 12:00 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: IsValid() problems with non-standard dates
Replies: 21
Views: 8316

Dates can be like this 2000-00-00 ....Isvalid is expeting in this yyyy-mm-dd format........
by trammohan
Thu Mar 27, 2008 11:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: IsValid() problems with non-standard dates
Replies: 21
Views: 8316

First convert the string to yyyy-mm-dd format and use Isvalid("date",string)... returns 1 or 0
by trammohan
Thu Mar 27, 2008 11:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: IsValid() problems with non-standard dates
Replies: 21
Views: 8316

First convert the string to yyyy-mm-dd format and use Isvalid("date",string)... returns 1 or 0
by trammohan
Mon Mar 24, 2008 4:20 pm
Forum: General
Topic: Unix scripts change
Replies: 5
Views: 2728

/opt/dataste/prod to /opt/datastage/dev

Hi ,

try this one

for i in `ls *.ksh`
do
sed 's/\/opt\/datastage\/prod/\/opt\/datastage\/dev/g' $i > ${i}_new
mv ${i}_new $i
done

hope this helps.....
by trammohan
Mon Mar 24, 2008 2:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: String
Replies: 12
Views: 4849

Albasir,

There is one External Filter stage in PX... use that stage to replace string with the following sed command

sed 's/AND/\) AND \(/g'

hope this helps...
by trammohan
Mon Mar 24, 2008 1:23 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: String
Replies: 12
Views: 4849

Can be implemented in a C routine and call it from the transformer..