I am trying to convert a sas data set to a .txt file. This seems to be fairly straightforward if I wanted to convert the set into a single text file, but I need each observation to be exported to its own.txt file and have data from two of the variables being the .txt file names. So if here is my data set: variable 1 variable 2 variable 3 1 a x 2 b y 3 c z I want to create 3 text files, 1_a.txt, 2_b.txt and 3_c.txt, containing x, y, z in the text file, respectably. I've heard this can be done with a sas macro, but I am not familiar with how to write macros and don't know where to start. Any help would be appreciated! Thanks!
... View more