Search found 76 matches

by krishna81
Fri Feb 19, 2010 4:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fields with same name in XML
Replies: 7
Views: 2892

Thanks.It worked.After 1st step i did substring logic in transformer.
I am going to mark this as resolved.
by krishna81
Thu Feb 18, 2010 10:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fields with same name in XML
Replies: 7
Views: 2892

The data i have posted above is sample but date fields are always just two.
by krishna81
Wed Feb 17, 2010 3:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fields with same name in XML
Replies: 7
Views: 2892

Is there any way we can handle this situation in datastage.
by krishna81
Wed Feb 17, 2010 3:17 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fields with same name in XML
Replies: 7
Views: 2892

This is the finest list and we are using same order.
by krishna81
Wed Feb 17, 2010 12:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fields with same name in XML
Replies: 7
Views: 2892

Fields with same name in XML

Is there any way that we can read read xml file where tagnames coming with same name.i am able to read first XML and populating fields except updatedate fileds.here i want to ppopulate if dateSequence=0 then updateDate should go to firstdate and if dateSequence=1 then second updateDate should go to ...
by krishna81
Mon Aug 17, 2009 8:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: XML Input Stage : Not able to read £ sign
Replies: 0
Views: 1733

you have to ridoff special characters prior to read XML file by creating Before/After subroutine. Ans = '' if len(ARG1) > 0 then for i = 1 to len(ARG1) if ( 033 <= (seq(substrings(ARG1, i, 1)))) & ((seq(substrings(ARG1,i,1))) <= 125) then Ans = Ans:(substrings(ARG1,i,1)) end else Ans = Ans:' ' e...
by krishna81
Fri Aug 07, 2009 12:13 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: sparse lookup vs Join
Replies: 4
Views: 4035

Sparse lookups should be used in the case of the input data being significantly lesser than the reference data. This will fire a query to the database for every input record and hence would be performance issue for increased number of input records. The Join stage uses hardly any memory at all. It t...
by krishna81
Thu Aug 06, 2009 4:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: PxEreplace routine issue when calling through datastage
Replies: 11
Views: 13215

as per duke's suggestion

Here is the complete code #include "iostream.h" #include "string.h" #include "stdlib.h" char* PrStrRep( char *InStr, char *SubStr, char *Replace, int Occurance, int Starting) { char *result = new char[2000]; size_t newlen = strlen(Replace); size_t oldlen = strlen(SubStr...
by krishna81
Thu Aug 06, 2009 2:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: PxEreplace routine issue when calling through datastage
Replies: 11
Views: 13215

resolved

it worked for men now for huge records by removing malloc and replaced with dynamic array. #include "iostream.h" #include "string.h" #include "stdlib.h" char* PrStrRep( char *InStr, char *SubStr, char *Replace, int Occurance, int Starting) { char *result = new char[2000...
by krishna81
Wed Aug 05, 2009 3:24 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: PxEreplace routine issue when calling through datastage
Replies: 11
Views: 13215

PxEreplace routine issue when calling through datastage

Hi i tried below routine which suppose to replace string with given substring but and i have an issue with this.i am ble to process less volune of records(ex:1000) and when i ran with huge volume(ex:15 million)of records it is hanging and keep running never finished and no warnings.is there any buff...
by krishna81
Wed Aug 05, 2009 11:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: px version of Ereplace()
Replies: 51
Views: 77968

here is the program i tried and it is not working for huge records.i appreciate for any suggestions. #include "stdio.h" #include "string.h" #include "stdlib.h" char* pxEreplace(char *str, char *subStr, char *rep, int num, int beg) { char *result = (char *)malloc (sizeof...
by krishna81
Wed Aug 05, 2009 11:32 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: px version of Ereplace()
Replies: 51
Views: 77968

issie with routine.

Hi i tried the above routine and i have an issue.i am ble to process less volune of records(ex:1000) and when i ran with 15 million records it is hang and no warnings.is there any buffer issue in this c program
by krishna81
Mon May 11, 2009 7:29 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Process Multiple files:Process Each file in each run
Replies: 4
Views: 2808

what exactly i have to give in expression editor in UserVariables stage.
by krishna81
Sun May 10, 2009 2:19 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Process Multiple files:Process Each file in each run
Replies: 4
Views: 2808

example:
file contains list of filenames

Filenamelist.txt
----------------
file1timestamp.txt
file2timestamp.txt