Search found 25 matches

by kiran kumar
Tue Jan 15, 2013 8:00 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Unable to run a SQL statement
Replies: 5
Views: 1903

Hi, Thanks for the response. The query is not commented out. I just gave two hyphens before the query. SELECT TABLE_ID, CC_ID, CC_TEST.DERIVE(TN||T_CODE) AS CC_ID_NEW FROM VEN_DETAILS WHERE REGION IS NOT NULL AND (NVL(CC_ID,0) <> NVL(DERIVE(TN||T_CODE),0)) The error was "ORA-00904 string: inval...
by kiran kumar
Tue Jan 15, 2013 6:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Unable to run a SQL statement
Replies: 5
Views: 1903

Unable to run a SQL statement

Hi, I am calling a SQL query which has a FUNCTION (DERIVE) in the Oralce OCI stage (Custom SQL statement). The query is running fine from command line. -- SELECT TABLE_ID, CC_ID, CC_TEST.DERIVE(TN||T_CODE) AS CC_ID_NEW FROM VEN_DETAILS WHERE REGION IS NOT NULL AND (NVL(CC_ID,0) <> NVL(DERIVE(TN||T_C...
by kiran kumar
Thu May 24, 2012 4:50 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: To transform data and carriage return
Replies: 16
Views: 8614

Hi Ray,

Thank You!

It did work...after a long struggle.
I used: Field(StageVar3,'|',2,1) which derived me BBB.

Now, I see how can i get the desired output. Will keep you all posted on the final result.

Thanks.
Kiran Kumar
by kiran kumar
Thu May 24, 2012 4:17 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: To transform data and carriage return
Replies: 16
Views: 8614

Thanks, James.

This is working.
I'm trying to find how can we read just the string "BBB" out of it.

Any help!
by kiran kumar
Thu May 24, 2012 3:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: To transform data and carriage return
Replies: 16
Views: 8614

In general, is there a way to read the value before a comma and after a comma separately?
by kiran kumar
Thu May 24, 2012 1:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: To transform data and carriage return
Replies: 16
Views: 8614

Yes, James.

I'm trying to figure it out. Its failing all the time :(
by kiran kumar
Thu May 24, 2012 12:54 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: To transform data and carriage return
Replies: 16
Views: 8614

Inline Field() functions, perhaps. First use "," as the delimiter and then take the second "|" delimited field from the result. ... Craig, I tried this option as - Field(Result,'|',2). This is returning "5/24/11,CCC" I think this is wrong. Per the need it should have r...
by kiran kumar
Thu May 24, 2012 11:04 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: To transform data and carriage return
Replies: 16
Views: 8614

Thanks, Ray & Mobashshar

It worked...
However, can you please suggest how to read just the date value from the entire record "AAA|1/05/09,BBB|5/24/11,CCC|2/22/12"

Like just the 1/5/09 - 5/24/11 - 2/22/12 from the entire string.
The required output is used in another column.
by kiran kumar
Wed May 23, 2012 9:56 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: To transform data and carriage return
Replies: 16
Views: 8614

To transform data and carriage return

Hi, I am facing an issue - can you please help. KEY DESC DATE 123 AAA 1/05/09 123 BBB 5/24/11 123 CCC 2/22/12 452 AA 5/2/04 452 BBB 3/6/06 631 AAAA 5/6/10 I have sorted the data on KEY and obtained as below 123 AAA|1/05/09,BBB|5/24/11,CCC|2/22/12 452 AA|5/2/04,BBB|3/6/06 631 AAAA|5/6/10 I am struck ...
by kiran kumar
Wed May 23, 2012 9:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field Function
Replies: 9
Views: 4266

Sorry, Craig.

My Mistake. The issue is resolved.
by kiran kumar
Wed May 23, 2012 9:21 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field Function
Replies: 9
Views: 4266

It worked. But, I am unable to trap the dynamic values.

can you please share any clue?
by kiran kumar
Wed May 23, 2012 8:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field Function
Replies: 9
Views: 4266

Your Field() function call is syntactically correct. Is your target a sequential file? If so, then you need to use CHAR(10) as the record delimiter. If not, you need to give us a better explanation of exactly what it is you are trying to accomplish, i.e. what your requirement is. My Target is an Or...
by kiran kumar
Wed May 23, 2012 8:03 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field Function
Replies: 9
Views: 4266

Hi, This actually worked with a Field function. there was some issue with the delimiter I'm passing in and I corrected it. Now, I have another issue in-line with this. the RECORD values varies and it has a comma as a delimiter as rec1,rec2,rec3,rec4.....and so on. Can you please suggest how can i pu...
by kiran kumar
Wed May 23, 2012 6:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field Function
Replies: 9
Views: 4266

I am reading records and if it matches a condition I am dumping them in a single column (which is as above) with a comma separated in between them.
by kiran kumar
Wed May 23, 2012 6:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field Function
Replies: 9
Views: 4266

Field Function

Hi, I have a requirement to separate out record which has a comma in it. RECORD: rec1,rec2,rec3 the output I need be rec1 rec2 rec3 I tried to read the RECORD using filed function as Field(RECORD,',',1):CHAR(13):Field(RECORD,',',2):CHAR(13):Field(RECORD,',',3) And the server is LINUX But, I am unabl...