Hello all
I am trying to display the content of stored macros in comma separated format , and wanted to put a header before displaying the macros, I am looping across different datasets and different measures. If I used the disp code directly it would be repeated by the number of looped datasets. therefore, I thought of only displaying the header if it was the first element (dataset) in the datasets macro. is there a way to refer to the first element in the macro, without specifying its name i.e if the dataset macro contains "tr12 sk10" , I don't want to refer to tr12 specifically but rather the first element so that the code can be more general? or is there some other way to disp a header in a loop to be displayed only once.
Thanks in advance
R
I am trying to display the content of stored macros in comma separated format , and wanted to put a header before displaying the macros, I am looping across different datasets and different measures. If I used the disp code directly it would be repeated by the number of looped datasets. therefore, I thought of only displaying the header if it was the first element (dataset) in the datasets macro. is there a way to refer to the first element in the macro, without specifying its name i.e if the dataset macro contains "tr12 sk10" , I don't want to refer to tr12 specifically but rather the first element so that the code can be more general? or is there some other way to disp a header in a loop to be displayed only once.
Thanks in advance
R
Comment