hi everyone, I need to create a dataset for EACH of the 20 patients using MACRO. The dataset shown below have 20 patient names and 3 variables - their income, average number of visits to doctors in last 3 months and average healthcare spending. Name income visit Spend Alex 100 10.45 10.20 Bruce 200 2.51 50.21 Candy 150 5.21 15.21 etc... i tried the following but it is not creating any dataset at all data serial; set patient; call symput('Name', Name); call symput('Income', Income); call symput('Visit', Visit); call symput('Spend', Spend); call symputx('numnames',_n_); %patient(&Name, &Income, &Visit, &Spend,&Count); Run; please advice .
... View more