Search found 200 matches

by times29
Thu May 17, 2012 12:54 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: getting syntax error
Replies: 3
Views: 1270

getting syntax error

Hi,
I am trying to use below syntax is sequence its not liking it any idea why

if DSJobInvocationId = 'AM' then ('AM', 'NA') else if DSJobInvocationId = 'AP' then ('AP','JN') else ('EN', 'EW', 'EM')
by times29
Tue May 08, 2012 6:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: conversation of current_timestamp
Replies: 7
Views: 3029

i get warnings while doing it
Data string '04/24/2012 04:20:36' does not match format '%yyyy-%mm-%dd %hh:%nn:%ss': the value for tag %yyyy has fewer characters than expected.
by times29
Tue May 08, 2012 10:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: conversation of current_timestamp
Replies: 7
Views: 3029

conversation of current_timestamp

Hi,
I am using current_timestamp in transformer which gives ouput 2012-05-05 08:05:37
user want it to be 05/05/2012 08:05:37 . Any idea who should i do it in transformer.

Thanks
by times29
Fri Apr 13, 2012 8:28 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: nulltovalue
Replies: 5
Views: 3473

Is "COUNTRY_CODE" a result from a lookup in earlier stages ?

No its mapped from db2 table to transformer

Are you using COUNTRY_CODE in a stage variable or constraint expression?

stage variable
by times29
Thu Apr 12, 2012 12:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: nulltovalue
Replies: 5
Views: 3473

nulltovalue

Hi,
i was getting column null error so i did NullToValue(to_transf.COUNTRY_CODE,'WW') and now i am getting

Transform,0: Fatal Error: Null value on the accessor interfacing to field "COUNTRY_CODE"

Thanks
by times29
Wed Apr 11, 2012 7:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: in stmt
Replies: 5
Views: 2207

in stmt

Doing below in transformer its not liking it

IF to_transf.COUNTRYCODE IN("US","CA") AND to_transf.COUNTRY_CODE IN("US,"CA") THEN '2'
ELSE '3'
by times29
Mon Apr 02, 2012 6:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: append four files
Replies: 12
Views: 3768

There are more then 4 files but i only want to load below four files
#$DATA_DIR#am.txt||#$DATA_DIR#eu.txt ||#$DATA_DIR#ap.txt||
#$DATA_DIR#thirdparty.txt
by times29
Mon Apr 02, 2012 6:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: append four files
Replies: 12
Views: 3768

ok how can i do
#$DATA_DIR#am.txt||#$DATA_DIR#eu.txt ||#$DATA_DIR#ap.txt||
#$DATA_DIR#thirdparty.txt
by times29
Mon Apr 02, 2012 6:12 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: append four files
Replies: 12
Views: 3768

its not file1,2 and 3
it has names like

#$DATA_DIR#am.txt
#$DATA_DIR#eu.txt
#$DATA_DIR#ap.txt
#$DATA_DIR#thirdparty.txt

so what will be file pattern in this case
by times29
Mon Apr 02, 2012 5:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: append four files
Replies: 12
Views: 3768

If i change

Read method = File Pattern

and i have four files as #$DATA_DIR#file1.txt,#$DATA_DIR#file2.txt,#$DATA_DIR#file3.txt,#$DATA_DIR#file4.txt

what will be file pattern ?
by times29
Mon Apr 02, 2012 5:34 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: append four files
Replies: 12
Views: 3768

append four files

Hi,
How can i append 4 .txt files in a db2 table all four files have same columns.

Thanks
by times29
Fri Jan 20, 2012 6:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: remove records based upon constraint
Replies: 6
Views: 2491

Well i tried Trim(to_transf.STATUS) <> 'Agent' too its not working
by times29
Fri Jan 20, 2012 2:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: remove records based upon constraint
Replies: 6
Views: 2491

remove records based upon constraint

Hi,
I am trying to remove records from incoming stream in transformer
doing below code as i don't want Agent as output and its not working

(to_transf.STATUS= 'Agent')<>0
by times29
Thu Jan 05, 2012 10:33 am
Forum: General
Topic: job ran based upon query result
Replies: 7
Views: 3058

I guess this is what you guys suggesting

step 1) load db query to dataset or faltfile
step 2) Used grep or wc in Execute Command Activity
step 3) Used Nested Condition to see is file return count

Now here i my confusion should step 4 be Wait for file activity ?
by times29
Wed Jan 04, 2012 6:52 pm
Forum: General
Topic: job ran based upon query result
Replies: 7
Views: 3058

jwiles wrote:You can use the built-in scheduler in Director
Lets say i schedule the job every 15 minutes from 7-10 pm
and it ran on 8 pm i just want to run it one time once it find the flag just
run one time between 7-10 how can i do that