I'm not sure I follow. What I think you have is the following: data_no_labels data_yes_labels Where the variables are the same (or at least many are, but the code can be adapted to account for only common variables). You want to use the sql code to pull the label information from "data_yes_labels" and then apply it to data_no_labels using the proc data sets. Is that not correct? As Peter said, if you have do this with a lot, you can generate some kind of a loop or possible write a macro. But without more details, it's hard to say. But first, is my description not correct?
... View more