I am new to sas. I downloaded and installed the university version from here: http://www.sas.com/en_us/software/university-edition.html Now, I am learning it with the book "learning sas by examples". https://www.sas.com/storefront/aux/en/splearnexample/60864_excerpt.pdf The code is very simple:
data veg;
infile "D:\sas\veggies.txt";
input Name $ Code $ Days Number Price;
CostPerSeed = Price/Number;
run;
The header of the file veggies file is as the following:
cucumber 50104-A 55 30 195
cucumber 51789-A 56 30 225
Carrot 50179-A 68 1500 395
I do not understand why. Could anyone help me with it please? Many many thanks.
EDIT: After constant trying, it seems like the shared folder works, but the code still does not work. The code is as the following:
data veg;
infile "C:\mydownloadedsoftware\unvbasicvapp_9411005_vmx_en_sp0_1(1)\SAS-University-Edition\myfolders\smile.txt";
input Name $ Code $ Days Number Price;
CostPerSeed = Price/Number;
run;
The smile.txt is as the following:
Cucumber 50104-A 55 30 195
Cucumber 51789-A 56 30 225
Could anyone tell me why?