I have a dimension in this dimension haveing n level elements , now I’m going to create a new dimension using existing dimension using Ti proses , I written a code for this but can’t create please correct me on code .
v1='subset'
dimension='v1'
cnt=dimsiz(dimension);
x=cnt;
while(x>=1)
elementname=dimnm(vdimension,x);
If( dtype(Vdimension, elementname)@=‘n’);
if(dimensionexistsVdimension)=1)
dimensiondestroy(Vdimension);
end if ;
deimensioncreate(Vdimension);
demensionelementinsert(vdimension,elementname);
x=x-1;
end;

1) Please create a new topic
2) Please post your actual, real code, which does not suffer from typo's, missing brackets, ... The code should save fine in a process. Show us what is in your variables dimension, Vdimension, and so on.
3) Format your code in