Search found 531 matches
- Thu Jul 16, 2009 7:11 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: SCD TYPE2 Implementation
- Replies: 7
- Views: 3973
SCD TYPE2 Implementation
Hi, I have scenario in which i need to develop a SCD type2.Here i have table in which colums are as follows:- SGTKE(PK),PARTY_ID,SEG_ID,R_ID,MANAGER_NAME,START_DATE,END_DATE 1,1,111,2,A,2009-07-10,NULL 2,6,123,B,2009-07-10,NULL 3,5,078,C,009-07-10,NULL Now i need to capture the new records basced on...
- Mon Jul 13, 2009 7:08 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Transformation Logic
- Replies: 9
- Views: 2629
Create a stage variable say svCount intialize it to 0. in derivation put if svCount=0 then col1+1 else svCount+1 reiterating words from my previous post also what sainath told that if you want to increment that value for each record them its best to use surrogate key. Thanks a lot........it resolve...
- Mon Jul 13, 2009 6:31 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Transformation Logic
- Replies: 9
- Views: 2629
- Mon Jul 13, 2009 5:31 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Transformation Logic
- Replies: 9
- Views: 2629
have you tried searching the forum? stage variables is not a good option unless you have to reset the counter depending on keys on key partitioned data. If you just want to generate a sequence number use surrogate key generator stage or surrogate key functionality of transformer. Yes i want counter...
- Mon Jul 13, 2009 4:21 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Transformation Logic
- Replies: 9
- Views: 2629
Transformation Logic
Hi All, i have a source dataset in which columns are two like this Col1,Col2 1,A 1,B 1,C and i want to develop some logic in transformer,so that my target data will be like this:- Col1,Col2 2,A 3,B 4,C Can anyone help me to do this using stage veriable..???or is there any other way out to do this..??
- Sat Jul 11, 2009 9:39 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: C++ routine error
- Replies: 16
- Views: 5369
- Sat Jul 11, 2009 11:59 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: C++ routine error
- Replies: 16
- Views: 5369
Edit the original post and fix your code tags. Your closing code tag is incomplete. ... I have made the code small........but still the problem is same......it is working well when i run this same code in turbo c++ compiler but when i call in routine its gives error...i think it is not able to call...
- Fri Jul 10, 2009 5:41 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: C++ routine error
- Replies: 16
- Views: 5369
- Fri Jul 10, 2009 2:12 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: C++ routine error
- Replies: 16
- Views: 5369
C++ routine error
hi all, We are trying to make C++ routine,we have developed a code ]#include<stdio.h> #include<stdlib.h> #include<string.h> #include<conio.h> char * substr(char a[] ,int s,int l) { int i; char * b; b=NULL; for(i=s;i<=s+l-1;i++) { b[i-s]=a[i-1]; } b[i-1]='\0'; //printf("%s",b); return b; } ...
- Thu Jul 09, 2009 12:41 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Pivoting scenario
- Replies: 5
- Views: 3167
Below mentioned is the example how Pivot stage works... The input link Columns page contains three input columns with sales data: JAN_Sales, FEB_Sales, and MARCH_Sales. The columns are as follows: The data for the source rows for the input columns looks like this: Input Source Rows CUSTID LNAME JAN...
- Wed Jul 08, 2009 11:39 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Pivoting scenario
- Replies: 5
- Views: 3167
Pivoting scenario
Hi , I have one scenario in wihch i have to pivot rows into column.And i have no idea to use a PIVOT stage. I have like this:- i/p:- col a b c d val 22-44 33-32 99-88 55-11 and i want o/p like this:- col1 col2 22 44 33 32 99 88 55 11 please help me in resolving this scenario.. Regards
- Fri Jul 03, 2009 7:38 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Call java code in datastage
- Replies: 4
- Views: 1541
It's not as far as I know. There is a Java PACK that will allow you to do things like this but it is a option you need to purchase. Perhaps with a build-op? :? Hi Chulett Thanks for ur reply,Ok but i dont know how to use buildup stage,can u please help me writing this code in buildup stage and exec...
- Fri Jul 03, 2009 7:14 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Call java code in datastage
- Replies: 4
- Views: 1541
Call java code in datastage
Hi, I have a java code with name Sum.java code:- class Sum1 { int RetSum(int a1 , int a2) { return a1+a2; } } class Sum { public static void main(String args[]) { Sum1 a=new Sum1(); System.out.println(a.RetSum(10,20)); } } when i coplied this code it generates two class files Sum.class and Sum1.clas...
- Fri Jul 03, 2009 6:57 am
- Forum: General
- Topic: running the java code in datastage7.5
- Replies: 3
- Views: 1172
running the java code in datastage7.5
Hi, I have a java code with name Sum.java code:- class Sum1 { int RetSum(int a1 , int a2) { return a1+a2; } } class Sum { public static void main(String args[]) { Sum1 a=new Sum1(); System.out.println(a.RetSum(10,20)); } } when i coplied this code it generates two class files Sum.class and Sum1.clas...
- Wed Jul 01, 2009 5:36 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Error in reading sequential file
- Replies: 7
- Views: 4264