- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi There,
I am learning SAS for R users. I am using Studio via OnDemand Academic webpage. i tried to run the code below to create a new dataset, but i did not see anything created, nor did i see any error in error section. Can someone point out what's wrong here?
Code below :
/*SP4R02e01
libname sp4r '/home/asiangirlhost/folders/myfolders';
DATA SP4R.Shelter2;
length Name $ 25 Color $ 10 Cats $ 3;
INPUT Name $ Age Weight Color $ Cats $ ;
DATALINES;
Pluto 3 25 Black No
Lizzie 10 43 Tan Yes
Pesci 10 38 Brindle No
;
run;
this is message from log :
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Your code should run or at least show an error, such as an invalid path for the LIBNAME statement.
Is that the whole log? If the log does not show the code you submitted then something is wrong. Either you didn't send it the code you showed or something else happened.
Looks like you are using some interface to send code to SAS, perhaps SAS/Studio?, because of that message about PDF(WEB) and spurious data step at the bottom of the lines you do show from the log. Those systems also normally send code in front of your code, perhaps that is messed up.
Did you really send that /* at the top of the code you showed? If so then SAS is waiting for the */ to end the comment and nothing in your code will do anything because it is all one long comment.