Search found 160 matches

by xinhuang66
Tue Jan 30, 2007 7:37 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get sequence number in Datastage
Replies: 6
Views: 3945

How to get sequence number in Datastage

I am talking about Datastage Server, not the parallel server.. There is an API routine KeyMgtGetNextValue, which can help us to generate a sequence number .. Do you guys usually use it to generated sequence number ? by the way, If I don't want to start from 0, for example I want to start from a cert...
by xinhuang66
Tue Jan 30, 2007 7:36 pm
Forum: General
Topic: How to generate a sequence number in Datastage ?
Replies: 2
Views: 3632

I am so sorry about fail to put them in the right section..

Sorry again !
by xinhuang66
Tue Jan 30, 2007 5:14 pm
Forum: General
Topic: How to generate a sequence number in Datastage ?
Replies: 2
Views: 3632

How to generate a sequence number in Datastage ?

There is an API routine KeyMgtGetNextValue, which can help us to generate a sequence number .. Do you guys usually use it to generated sequence number ? by the way, If I don't want to start from 0, for example I want to start from a certain point like 1000000. Does KeyMgtGetNextValue can help me ? O...
by xinhuang66
Tue Jan 30, 2007 4:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reference link get the first row of the reference table
Replies: 29
Views: 5223

This is exactly why I asked you to post your sql. by the way, the reference table is from a SQL Select statement like . SELECT RA_HCUSTOMERS.CUSTOMER_ID, RA_HCUSTOMERS.CUSTOMER_NUMBER, RA_ADDRESSES_MORG.ADDRESS_ID FROM RA_HCUSTOMERS, RA_ADDRESSES_MORG WHERE RA_ADDRESSES_MORG.PARTY_ID (+) = RA_HCUST...
by xinhuang66
Tue Jan 30, 2007 12:33 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reference link get the first row of the reference table
Replies: 29
Views: 5223

Actually, I just drag the link field from master link into the key expression field. I am not very sure what you mean "like", do you mean I use like instead of = ? About the reference SQL, since it was composed of two tables by left outer join. I am not sure how I can get the column based ...
by xinhuang66
Tue Jan 30, 2007 12:11 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reference link get the first row of the reference table
Replies: 29
Views: 5223

by the way, the reference table is from a SQL Select statement like . SELECT RA_HCUSTOMERS.CUSTOMER_ID, RA_HCUSTOMERS.CUSTOMER_NUMBER, RA_ADDRESSES_MORG.ADDRESS_ID FROM RA_HCUSTOMERS, RA_ADDRESSES_MORG WHERE RA_ADDRESSES_MORG.PARTY_ID (+) = RA_HCUSTOMERS.PARTY_ID AND RA_ADDRESSES_MORG.BILL_TO_FLAG (...
by xinhuang66
Tue Jan 30, 2007 12:08 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reference link get the first row of the reference table
Replies: 29
Views: 5223

Yes, since look up couldn't find the same value, I mean none of master field value existed in the referece table.. Theoritically, it should return Null, but it is weired, it always return the vlaue of the first row.. Basically things like that Master table field1, field2 1 a 2 b reference table fiel...
by xinhuang66
Mon Jan 29, 2007 11:44 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reference link get the first row of the reference table
Replies: 29
Views: 5223

User defined SQL as follows: SELECT RA_HCUSTOMERS.CUSTOMER_ID, RA_HCUSTOMERS.CUSTOMER_NUMBER, RA_ADDRESSES_MORG.ADDRESS_ID FROM RA_HCUSTOMERS, RA_ADDRESSES_MORG WHERE RA_ADDRESSES_MORG.PARTY_ID (+) = RA_HCUSTOMERS.PARTY_ID AND RA_ADDRESSES_MORG.BILL_TO_FLAG (+) = 'P' AND RA_ADDRESSES_MORG.ORG_ID (+)...
by xinhuang66
Mon Jan 29, 2007 11:27 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reference link get the first row of the reference table
Replies: 29
Views: 5223

Sorry

I think it is an ordinary questions, then I didn't post it in Server section. Exactly, missed match should return null. However In my test job, master link is a sequential file, reference link is a oracle table based on select statement. output link is one field from master link, one field from refe...
by xinhuang66
Mon Jan 29, 2007 10:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reference link get the first row of the reference table
Replies: 29
Views: 5223

Reference link get the first row of the reference table

I meet a weired case. I use sequence file as the master link, and oracle statement in Oracle stage as the reference link. drag master.field3 = reference.keyfield Actually, no exact match, all fields from reference link should be " " After I run the job, it is strange, all fields value from...
by xinhuang66
Mon Jan 29, 2007 7:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to make the whole job as a transaction ?
Replies: 3
Views: 1082

How to make the whole job as a transaction ?

I want to load data from a sequencial file to oralce table.. And if any row was rejected, the whole job rollback.. When I check the transaction handling in Oracle Stage, there are only a row count configuration for the transaction handling. Actually, I am not sure how many rows in the sequencial fil...
by xinhuang66
Mon Jan 29, 2007 7:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Get String with single quota .
Replies: 6
Views: 1260

Why in datastage director log, it still display the field value with double quote...
by xinhuang66
Mon Jan 29, 2007 6:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Get String with single quota .
Replies: 6
Views: 1260

Get String with single quota .

I use data in sequential file update progress table by odbc stage.

Progress table can only know varchar with single quota mark, but datastage automatically add double quota mark for the field from sequential file..

How can I make datastage only add single quota mark to string field...

Thanks
by xinhuang66
Mon Jan 29, 2007 6:09 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Update Progress Table by ODBC Stage
Replies: 1
Views: 954

Update Progress Table by ODBC Stage

I got an error when I try to update source progress table by ODBC Stage. Basically, Datastage generated update SQL statement is as follows: UPDATE PUB."ar_mstr" SET ar_xcomm_pct = ? WHERE (ar_nbr = ? ); both ar_xcomm_pct and ar_nbr field are varchar type. After I run the job, it always get...
by xinhuang66
Tue Jan 16, 2007 11:09 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Connect to Server error
Replies: 5
Views: 1715

I still have no idea about the NLS errors when I started client connect to the Server