I am interested in learning what tools are requiring such formatting, especially if it is a popular tool like a database or other analysis software.
See my other post with details of how to get the names. If you want to add quotes around all of the variables then you can simplify by using PROC TRANSPOSE to get the names. But that will not give you the type of the variables.
proc transpose data=Basis_upd(obs=0) out=names; run;
filename csv "&export_dir.&date_exp.\&date_exp._Basis_update_.csv";
data _null_;
set names;
file csv dlm=';' dsd lrecl=1000000 ;
put _name_ ~ @ ;
run;
data _null_;
set Basis_upd;
file csv dlm=';' dsd mod lrecl=1000000 ;
put (_all_) (~);
run;
... View more