Code: Select all
# define loop input, where "DIM_flat_iter" represents a dimension containing the relevant input variables as dimension elements
sCube = 'xyCube';
sDIM = 'DIM_flat_iter';
DimCount = DIMSIZ('sDIM');
i = 0;
# start iteration
WHILE ( i < DimCount);
i = i + 1;
elemDIM = DIMNM(sDIM, i );
varDIM = ?? ; # ----> how do I capture this, as string values from a dimension cannot represent input variables, I guess
if (Q_Code @<>' ');
if (varDIM @= 'X');
if (QAB @= 'X');
CellPutN(1, sCube, 'QAB', elemDIM, Q_Code, 'Marker');
endif;
endif;
endif;
END;