We have moved to www.dataGenX.net, Keep Learning with us.
Showing posts with label pivot. Show all posts
Showing posts with label pivot. Show all posts

Sunday, May 18, 2014

DataStage Scenario - Design7- job1



DataStage Scenario Problem -->  DataStage Scenario - Problem7

Solution Design :

a) Job Design :  Below is the design which can achieve the output as we needed. Here, we are reading seq file as a input, then data is passing through a Transformer and Peek stage to achieve the output.



http://datastage4you.blogspot.in/2014/05/datastage-scenario-design7-job1.html



Thursday, July 11, 2013

Convert a single row into multiple rows ( horizontally pivoting ) with Pivot stage ?


In this example, the Pivot Enterprise stage is set up to horizontally pivot some data.
You can generate a pivot index that will assign an index number to each row within sets of horizontally pivoted data. The following tables provide examples of data before and after a horizontal pivot operation.


Input Data
REPID,last_name,Jan_sales,Feb_sales,Mar_sales
100,Smith,1234.08,1456.80,1578.00
101,Yamada,1245.20,1765.00,1934.22
102,Xing,2190.89,1287.98,2054.55
103,Anderson,1498.09,1287.23,3298.76


Tuesday, January 29, 2013

Pivot stage made easy


Many people have the following misconceptions about Pivot stage.
1) It converts rows into columns
2) By using a pivot stage, we can convert 10 rows into 100 columns and 100 columns into 10 rows
3) You can add more points here!!