I\'m trying to concatenate multiple datasets in SAS, and I\'m looking for a way to store information about individual dataset names in the final stacked dataset.
For
Use the in statement when you set each data set:
in
data final; set my_data_1(in=a) abc(in=b) xyc(in=c); if a then var_3='my_data_1'; if b then var_3='abc'; if c then var_3='xyz'; run;