LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2012, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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?


Back to: Top of message | Previous page | Main SAS-L page