I have a macro variable called list1, which gives:
%put &list1.;
A,B,C,D,,,G,,I,,
I need to delete those items which are missing i.e empty between the commas. The final output should be like A,B,C,D,G,I
. Is it possible? Trim function does not seem to work here. I'm new to SAS so any help will be appreciated here. Thanks.