The EXPORT/IMPORT trick will work at least with test data. It is not
the best. PROC IMPORT is takes a long time.
dm 'clear log; clear output;';
array chr $8 (381*'Hello');
array num $8;
do _n_ = 1 to dim(num);
do _n_ = 1 to 1e3;
proc print data=_last_(obs=2);
filename ft56f001 temp lrecl=32707;
proc export data=work.test outfile=ft56f001 dbms=dlm;
proc import datafile=ft56f001 out=work.test2 replace dbms=dlm;
proc contents varnum;
On Jan 25, 2008 12:30 PM, Melodyp <email@example.com> wrote:
> Hello everyone!
> I have a big file contains both charact variables and numerical
> variables, but all of these variables are read into SAS as Charact.
> I need to let SAS to select those contains letters vaiables as charact
> so that I don't need to convert later. Is there anybody can help me on
> this? It will be very tidious to read variable by variables, as I have
> total 681 variables.
> Thank you in advance