Vertical Pivot
Posted: Thu Jul 21, 2016 4:56 am
Dear Team,
We are facing issue while doing vertical pivoting in datastage .
More description as follows:
Job :
db2 ---> Pivot (vertical pivot) ----->fixedwidth File
job functionality :
We have requirement of below output (after vertical Pivot) .
COL1|COL2|COL3
A|1|1|1
B|2|2|2
C|3|3|3
But if db2 query passes only 2 records only then output is like as follows which is disturbing the order of fixed width file.
COL1|COL2|COL3
A|1|1|1
C|3|3|3
Here the missing line is B|2|2|2
Fixedwidth file output as follows:
1|1|1|3|3|3
but if db2 passes only 2 records then it should give me below expected output .
COL1|COL2|COL3
A|1|1|1
B|0|0|0
C|3|3|3
Expected Fixedwidth file output as follows:
1|1|1|0|0|0|3|3|3
How we can achieve the same ?
Thanks
We are facing issue while doing vertical pivoting in datastage .
More description as follows:
Job :
db2 ---> Pivot (vertical pivot) ----->fixedwidth File
job functionality :
We have requirement of below output (after vertical Pivot) .
COL1|COL2|COL3
A|1|1|1
B|2|2|2
C|3|3|3
But if db2 query passes only 2 records only then output is like as follows which is disturbing the order of fixed width file.
COL1|COL2|COL3
A|1|1|1
C|3|3|3
Here the missing line is B|2|2|2
Fixedwidth file output as follows:
1|1|1|3|3|3
but if db2 passes only 2 records then it should give me below expected output .
COL1|COL2|COL3
A|1|1|1
B|0|0|0
C|3|3|3
Expected Fixedwidth file output as follows:
1|1|1|0|0|0|3|3|3
How we can achieve the same ?
Thanks