Search found 88 matches
- Tue Jul 23, 2019 9:25 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Grouping of data
- Replies: 1
- Views: 2331
Grouping of data
Hi All I need help in resolving below example. grouping the data based on the keys(date ranges) for Example Before grouping data A B C D E 100 200 1 1/1/2000 5/1/2001 100 200 1 5/2/2001 8/7/2005 100 200 3 8/8/2005 1/4/2007 100 200 3 1/5/2007 2/1/2008 100 200 1 2/2/2008 6/8/2010 100 200 9 6/9/2010 NU...
- Tue May 17, 2016 7:38 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: issue while Creating XML output file
- Replies: 6
- Views: 3544
- Tue May 17, 2016 12:34 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: issue while Creating XML output file
- Replies: 6
- Views: 3544
- Mon May 16, 2016 11:46 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: issue while Creating XML output file
- Replies: 6
- Views: 3544
issue while Creating XML output file
Hi, I am trying to load data into an xml file. Source data: - CODE,COL1,COL2,COL3 A,1,2,3 B,1,2,3 Expected outpudata format: - <?xml version="1.0" encoding="UTF-8"?> <PARENT_XML> <PRODUCT> <CODE>A</CODE> <COL1>1</COL1> <COL2>2</COL2> <COL3>3</COL3> </PRODUCT> <PRODUCT> <CODE>B</C...
- Thu Oct 29, 2015 11:22 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Reading SQL from a file through ODBC stage
- Replies: 5
- Views: 3813
Ray, Thanks for your suggestion. I tried using semi colon and there is no line terminator at the end of SQL query. Also, when I searched in forum, I found that we should actually call the File as {File}/home/user/abc.sql . So, I tried with this option also but still getting the above error. Does ODB...
- Thu Oct 29, 2015 6:26 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Reading SQL from a file through ODBC stage
- Replies: 5
- Views: 3813
- Thu Oct 29, 2015 3:06 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Reading SQL from a file through ODBC stage
- Replies: 5
- Views: 3813
Reading SQL from a file through ODBC stage
Hi All, I wanted to read the SQL "SELECT * FROM EMP" through a file in ODBC connector stage. The connection was successful. When I am trying to view the data I am getting below error "ODBC Function "SQLNumResultCols" reported: SQLSTATE=42000:Native Error Code=-104 ILLEGAL SY...
- Sun Oct 11, 2015 9:30 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Looping Date values in Transformers
- Replies: 9
- Views: 4973
I tried using the loop variables with @ITERATION function. it worked well for me. here is the logic. Stage variable1 - Min Date Stage Variable2 -Max Date Stage Variable3 - JulianDay(MaxDate)-JulianDay(MinDate) Now, In loop constraint @ITERATION <=StageVariable3 In derivation of LoopVar - Dateoffsetb...
- Thu Oct 08, 2015 5:45 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Looping Date values in Transformers
- Replies: 9
- Views: 4973
Looping Date values in Transformers
Hi All, I have a single record from source which contains minimum date - 2015/10/01 and maximum date - 2015/10/31. Now, In target I want to generate in between dates using loop variables. So my target should contain 31 records including the min and max dates. can some one help me on this. Thanks sku...
- Thu Jun 06, 2013 4:51 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Writing XML data into DB2 table
- Replies: 0
- Views: 1276
Writing XML data into DB2 table
Hi All I am trying to insert a XML value into one DB2 column. I am getting the below warning and all records are getting rejected while loading into the table. The target datatype is XML. Invalid character(s) ([xE1]) found converting string (code point(s): <tns:abcs xmlns:tns="http://www.xyz.co...
- Wed Sep 07, 2011 6:55 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Numeric sorting of the data
- Replies: 2
- Views: 1859
Numeric sorting of the data
Hi All
I am receiving the data from my source as below
RP11
Rp2
RP1
RP12
After doing the sorting I am getting the output as
RP1
RP11
RP12
RP2
but I want the output as
RP1
Rp2
RP11
Rp12
Can any one help me that is there any function to achieve or any possible way to do it?
Thanks
skumar
I am receiving the data from my source as below
RP11
Rp2
RP1
RP12
After doing the sorting I am getting the output as
RP1
RP11
RP12
RP2
but I want the output as
RP1
Rp2
RP11
Rp12
Can any one help me that is there any function to achieve or any possible way to do it?
Thanks
skumar
- Fri Mar 25, 2011 1:27 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Year day conversion to date
- Replies: 1
- Views: 1552
Year day conversion to date
Hi all
I have a requirement that from my source i am getting the date format as "2011335" I want to convert this as "2011-12-01". can any one throw some light how i can do this using the parallel transformer?
Thanks in advance.
Regards
skumar
I have a requirement that from my source i am getting the date format as "2011335" I want to convert this as "2011-12-01". can any one throw some light how i can do this using the parallel transformer?
Thanks in advance.
Regards
skumar
- Thu Jan 20, 2011 7:36 am
- Forum: General
- Topic: parameterisation problem
- Replies: 2
- Views: 1959
parameterisation problem
Hi All I am facing a problem while parameterising the query. I have a requirement to paramaeterise the source query. For Ex: - SELECT * FROM #$SCHEMA#.EMP I am calling the total query in a job parameter. When I declared the parameter as a string the total query is considered as string which includes...
- Fri Jan 07, 2011 3:24 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Shared container compilation error
- Replies: 5
- Views: 4850
- Wed Mar 31, 2010 3:42 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Filter values parameterisation
- Replies: 1
- Views: 1564
Filter values parameterisation
Hi All I have some codes present in my source data. I am filtering the records through a filter stage and I want to pass that filter values at run time. In the filter I am setting the where clause as input.col='" :pcode12345:"'. At run time i want pass the values as (1,2) or (1,2,3) etc......