| Date: | Sat, 4 Feb 2012 16:31:16 -0500 |
| Reply-To: | Rong Jin <rongjin2006@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Rong Jin <rongjin2006@GMAIL.COM> |
| Subject: | read external file storing matrix |
| Content-Type: | text/plain; charset=ISO-8859-1 |
|---|
In proc iml, I saved a matrix y (200 rows 84 columns) into external data
file as following:
file 'C:\DATA.dat';
do i=*1* to 200;
do j=*1* to 84;
put (y[i,j])*4.0* +*2* @;
end;
put;
end;
Later I read it as following and found one or more lines were truncated
(only 100 observations and 84 variables have been read into the data file)
*data* temp00;
infile 'C:\DATA.dat';
input var1-var84;
*run*;
I wonder how to solve this problem?
|