Yes, it creates macro variables &id1,&id2,....; example: data have; input sex$ ; cards; f m f ; data _null_; set have; call symputx(cats('id',_n_),sex); run; %put &id1; %put &id2; %put &id3; /* log file */ 440 data have; 441 input sex$ ; 442 cards; NOTE: The data set WORK.HAVE has 3 observations and 1 variables. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 446 ; 447 data _null_; 448 set have; 449 call symputx(cats('id',_n_),sex); 450 run; NOTE: There were 3 observations read from the data set WORK.HAVE. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.01 seconds 451 %put &id1; f 452 %put &id2; m 453 %put &id3; f
... View more