Hi All,
I also tried using alter table , it take more time to run.
previously i have compressed the DS but now i don't, as i need to work further on it
so why unecessary compress and uncompress, also i have enough diskspace to store the data.
the input file from where i am populating this DS is as follows
1, 2,23,4,5,24,6,7
2, 3, 234,2,6,712,8,4,1025,10,3
where 1st is id i.e id=1
2nd is no. of values (of index) cnt =2
23 is the index of column (basically its some other id)
4, 5 are the values i.e. x_23 =4 , y_23 = 5
x_24 = 6, y_24 = 7
similarly for second record id= 2,
cnt =3 and the 3 values are
x_234 = 2 y_234=6 ,
x_712=8, y_712=4 ,
x_1025 =10, y_1025 = 3
so this index can vary from 1 to 2000.
so i have defined a array of all the columns
array x_{2000};
array y_{2000};
infile "c:\inputfile.csv" dsd missover lrecl=32767;
input id cnt @;
do i=1 to cnt;
input id2 x_[id2] y_[id2] @;
end;
................
so can we have alternate method so that we can make columns only that we want.
Regards,
Avi