Application: SAS Enterprise Guide 4.3 /
Operating System: Windows XP
I am trying to learn the SAS programming language and am having trouble reading in a small, space-delimited text file which contains tabular data. When I execute the following syntax:
data demographic;
infile "C:\Documents and Settings\USERID\My Documents\sas\mydata.txt" dlm=" ";
input Gender$ Age Height Weight; run;
I receive the following error message in the log:
ERROR: Physical file does not exist, /sas/config/Lev1/FORApp/C:\Documents and Settings\USERID\My Documents\sas\mydata.txt.
I know that I can load the text file in through the GUI, but would really like to know how to load data from the command line.
Any help provided is greatly appreciated.
In EG, use the File/Import Data option to upload your data to the server. You can save this task in your EG project if you want the data to reside in the WORK lib during usage…or you can change the output data location in the Import wizard to store the data permanently on the server.