Define a filename to use with outfile= and set the encoding option on the filename. filename exprt '/my/file.txt' encoding="utf-8"; proc export data=sashelp.class outfile=exprt dbms=tab; run;
... View more
Hello, A data step solution: data have; input a b c d e; datalines; 1 3 5 7 9 2 4 6 8 10 ; data want; set have; array vars{*} a--e; do i=1 to dim(vars); character=vname(vars{i}); number=vars{i}; output; end; keep character number; run;
... View more