Search found 28 matches

by Ronetlds
Tue Oct 16, 2007 3:33 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: difference of dates
Replies: 14
Views: 6824

(Iconv(date1,"D/DMY[2,2,4]")
by Ronetlds
Mon Oct 15, 2007 2:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: decimal15,8 * decimal20,4
Replies: 1
Views: 764

Along with the mathematical type conversion functions, you may want to use the mathematical functions Floor, Ceil and Mod to get the level of precision you want by rounding or truncating.
by Ronetlds
Wed Oct 10, 2007 9:52 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job Control Error
Replies: 6
Views: 2887

Did you try using JobHandle instead of DSJ.ME as jobname in the DSAttachJob function?
by Ronetlds
Mon Oct 08, 2007 2:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DataStage 8.0 - Routine C problem
Replies: 0
Views: 1500

That error indicates it's likely the compiler options.

I'm on -> on AIX 5.2 DS 7.5.2

try this ->

/usr/vacpp/bin/xlc_r -c -O -qsourcetype=c++ greatest.c -o greatest.o


Or rename your .c file .cpp
by Ronetlds
Mon Oct 08, 2007 9:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with calculation in transformer
Replies: 6
Views: 2869

My in file:
Filed1,Field2

SELECT 1301128551.1,1324414646 FROM DUAL

My out file
"23286094.9"

all fields dec(30,8)

deriv: DSLink77.Two- DSLink77.One

Can't recreate error - mine works fine
by Ronetlds
Thu Oct 04, 2007 9:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: uv command
Replies: 2
Views: 1048

or create shell looping for each $PROJNAME found using dsjob -lprojects, #### $JOBNAME is your job #### define a $LOGFILE cd ${DSHOME} bin/uvsh >${LOGFILE} 2>&1 << EOF LOGTO ${PROJNAME} LIST DS_JOBS WITH NAME=${JOBNAME} QUIT EOF cd echo " " ${PROJNAME} " ${JOBNAME} " `cat ${L...
by Ronetlds
Thu Oct 04, 2007 9:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: uv command
Replies: 2
Views: 1048

Write a unix script:

loop through output of dsjob -dsprojects to get $PROJNAME or similar

then dsjob -jobinfo $PROJNAME yourjobname | grep -i category | wc -l > ctr

if ctr >0 then echo $PROJNAME
by Ronetlds
Wed Oct 03, 2007 4:12 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Handle_Null Generating Fatal Error
Replies: 3
Views: 1875

Just confirming, I should have said "Is this what you have set up"

Anyway, try

SUM_CASH_VAL :decimal[11,2] = handle_null(SUM_CASH_VAL,0)

Note the brackets [] after the word "decimal". Not parens (). That could be your problem.
by Ronetlds
Wed Oct 03, 2007 3:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Handle_Null Generating Fatal Error
Replies: 3
Views: 1875

CV Totals In (SUM_CASH_VAL nullable is "Y") ->

Modify (handle nulls here) -> (SUM_CASH_VAL nullable is "N") ->

out rec
by Ronetlds
Thu Sep 27, 2007 5:23 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: maximum profit from overall branch
Replies: 11
Views: 4204

My guess is management decree. They paid for it, ergo you must use it. I've actually worked in a situation where the push was to convert EVERY server job to EE even though we were chugging through a whopping 20,000 rows max per job. Feeling nauseous yet? :P
by Ronetlds
Thu Sep 27, 2007 9:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: maximum profit from overall branch
Replies: 11
Views: 4204

Maveric wrote:Sort data on profit field in descending order and take only the first row from the output.
Try maximum function in aggregator stage :wink:
by Ronetlds
Wed Sep 26, 2007 9:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DSJE_TIMEOUT error
Replies: 1
Views: 1673

Could be a DB2 communication/connection glitch :shock: . Did you try rerunning? Can you view table data by opening the DB2 stage with the desired job params?
by Ronetlds
Wed Sep 26, 2007 11:29 am
Forum: General
Topic: Calculating buisness hours between two timestamps
Replies: 20
Views: 5791

Can you just direct me how to do it? I would really appreciate the help. Cheers! I created a doc just last week which explains how to create a simple C++ function, compile it in AIX 5.2, and create a PX routine that references it. Let me know if you're interested. To avoid having my work email addr...