Thanks for your comment Ksharp. I get the following error message. Data want; 43 set have; 44 by client year quarter; 45 array x{*} &list; NOTE: Line generated by the macro variable "LIST". 45 spec. spec0 spec1 spec10 spec11 spec13 spec16 spec17 spec18 spec2 spec20 spec21 spec22 spec23 spec24 spec26 spec27 _____ 22 201 45 ! spec28 spec29 spec3 spec30 spec35 spec37 spec4 spec5 spec6 spec60 spec61 spec62 spec7 spec8 spec89 spec90 ERROR 22-322: Syntax error, expecting one of the following: a name, a numeric constant, $, (, ;, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_, _TEMPORARY_. ERROR 201-322: The option is not recognized and will be ignored. 46 retain &list; NOTE: Line generated by the macro variable "LIST". 46 spec. spec0 spec1 spec10 spec11 spec13 spec16 spec17 spec18 spec2 spec20 spec21 spec22 spec23 spec24 spec26 spec27 _____ 22 201 46 ! spec28 spec29 spec3 spec30 spec35 spec37 spec4 spec5 spec6 spec60 spec61 spec62 spec7 spec8 spec89 spec90 ERROR 22-322: Syntax error, expecting one of the following: a name, ;, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_. ERROR 201-322: The option is not recognized and will be ignored. 47 48 if first.quarter then do; 49 do i=1 to dim(x); 50 x{i}=0; 51 end; 52 end; 53 do i=1 to dim(x); 54 if cats('spec',specialty)=vname(x{i}) then do; 55 x{i}=count;leave; 56 end; 57 end; 58
... View more