I often want to paste all of the variable names of a dataset into one column in an Excel file.
proc contents data=mydata varnum short;
run;
will give me the names separated by spaces in ODS. I run text-to-columns and then paste-transpose the results to get the format that I want.
I want that same output, but separated by line breaks instead of spaces so that I can easily paste them into a single column in Excel.
Thanks for your suggestions, pT