@data_null__ wrote:
What did you find in the documentation?
1 data _null_;
2 set sashelp.class(obs=2);
3 put 'NOTE: ' (_all_)(=);
4 run;
NOTE: Name=Alfred Sex=M Age=14 Height=69 Weight=112.5
NOTE: Name=Alice Sex=F Age=13 Height=56.5 Weight=84
NOTE: There were 2 observations read from the data set SASHELP.CLASS.
The trick with TRANSLATE() is not going to work if printing all of the variable names exceeds the line length of the file being written. Might as well just use the version that supports name literals all of the time.
... View more