|
Dear sas-group,
I want to read out the information in a string IDs who looks like this
IDs
obs1: [1 2] [3 3] [4 4] [5 5] [6 6] [7 7] [8 8] [9 9]
obs2: [1 4] [5 5] [6 6] [7 7] [8 8] [9 9]
obs3: [1 4] [5 5] [6 8] [9 9]
obs4: [1 9]
One first idea for a macro readout:
%MACRO readout(data);
*obs1;
%DO i=1 TO 8;
DATA readout1;
SET &data;
WHERE ID in (1,2); *here the string IDs has to be read out;
RUN;
....
%END;
%MEND readout;
How can I read out the information in the [...]?
Best regards, Stefan.
|