lesson 2.1.9 - Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/&path/country.dat.

411 views
Skip to first unread message

kardekardeepa

unread,
Aug 5, 2014, 12:02:31 AM8/5/14
to anova...@googlegroups.com
I submitted a SAS program as given in a  practice .
i have already defined the Orion Library before writing this code. . And when i clicked on Run i got the following error message in log-

Errors, Warnings, Notes
 Errors (1)
 Warnings (4)
 Notes (4)
 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 42         ;
 43         data work.country;
 44             length Country_Code $2 Country_Name $48;
 45             infile "&path/country.dat" dlm='!';
 WARNING: Apparent symbolic reference PATH not resolved.
 WARNING: Apparent symbolic reference PATH not resolved.
 46             input country_code $ country_Name $;
 47         run;
 
 ERROR: Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/&path/country.dat.
 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set WORK.COUNTRY may be incomplete.  When this step was stopped there were 0 observations and 2 variables.
 WARNING: Data set WORK.COUNTRY was not replaced because this step was stopped.
 NOTE: DATA statement used (Total process time):
       real time           0.01 seconds
       cpu time            0.02 seconds
       
 
 48         
 49         proc print data=work.country;
 50         run;



Please help me out

Thanks,
Deepa.
 

Jennifer SUN

unread,
Aug 5, 2014, 12:12:11 PM8/5/14
to anova...@googlegroups.com
based on the log msg, the marco &path did not solved. please check whether your autofile run correctly.

could you please post your autofile?

kardekardeepa

unread,
Aug 5, 2014, 11:43:15 PM8/5/14
to anova...@googlegroups.com
Sorry Jennifer, But Whats the autofile here?
I just followed all the instructions in practice. Typed below code and run it.  


data work.country;
    length Country_Code $2 Country_Name $48;
    infile "&path/country.dat" dlm='!';
    input country_code $ country_Name $;
run;

proc print data=work.country;
run;

Anova Groups

unread,
Aug 6, 2014, 12:43:10 AM8/6/14
to anova...@googlegroups.com
upper left side there is button next to sign out button where you can add code for autoexec. Put following code in autoexec

%let path=/folders/myfolders/ecourse; 
libname orion "&path";


Autoexec code is executed when SAS is opened.

kardekardeepa

unread,
Aug 6, 2014, 7:00:20 PM8/6/14
to anova...@googlegroups.com
Thanks Vikas , Jennifer - yup there was a problem with autoexec file , it was blank.
I can run the program and see the output.

Thnx,
Deepa.
Reply all
Reply to author
Forward
0 new messages