I think maybe I am not giving enough details on how everything is set up and what I am already doing. So here we go. First off, I am using a Mac Book and SAS University Edition. I am using Cody’s Learning SAS by Example. On page 9 of the 2nd edition, he lists a raw data file Mydata.txt. This is what it contains: M 50 68 155 F 23 60 101 M 65 72 220 F 35 65 1330 M 15 71 166 The program syntax he uses is listed as follows: data Demographic; infile “C:\books\learning\Mydata.txt”; input Gender $ Age Height Weight; run; In order to do this problem myself, I downloaded this and all other data files that go with the book at support.sas.com/cody. On my physical computer, I have one main folder, listed as SASUniversity Edition. There is a subfolder to it titled 71442_example. In that folder, I have access to the Mydata.txt file mentioned above. I can open and close it and it contains the same raw data as the example above. The folders I just mentioned are marked as “shared folders” and the Mydata.txt file is NOT marked as locked. When I go to virtual machine, the main folder, listed above, and I assume all subfolders, are listed as a shared folder. It is set to Full Access and is in Auto Mount. If I put my mouse arrow on it, a textbox appears that reads: “List all shared folders accessible to this machine. Use ‘net use x: \\vboxsvr\share' (note* this shouldn't be underlined but its showing up like that here) to access a shared folder named share from a DOS-like OS, or ‘mount -t vboxsf share mount_point’ to access it from a Linus OS. This feature requires Guest Additions." When I go to SAS Studio, listed under my Folder Shortcuts is the folder SASUniversity Edition and a subfolder, 71442_example. I’m assuming I have successfully shared these folders from my physical computer to SAS Studio, since they are visible on SAS Studio. In the 71442_example folder, I can locate the file, Mydata.txt and open it. When I check the properties, it lists this: Name: Mydata.txt Type: File Location: /folders/myshortcuts/SASUniversityEdition/71442_example/Mydata.txt Size: 63 Bytes Date modified: Jul 12, 2019, 2:55:18 PM. Trying to follow the example from Cody, listed above, I write the following syntax: data Demographic; infile “C:/folders/myshortcuts/SASUniversityEdition/71442_example/Mydata.txt”; input Gender $ Age Height Weight; run; Here is the log: 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 72 73 data Demographic; 74 infile “C:/folders/myshortcuts/SASUniversityEdition/71442_example/Mydata.txt”; _ 23 ERROR 23-2: Invalid option name :. 74 ! infile “C:/folders/myshortcuts/SASUniversityEdition/71442_example/Mydata.txt”; _______ 23 ERROR 23-2: Invalid option name FOLDERS. 74 ! infile “C:/folders/myshortcuts/SASUniversityEdition/71442_example/Mydata.txt”; ___________ 23 ERROR 23-2: Invalid option name MYSHORTCUTS. 74 ! infile “C:/folders/myshortcuts/SASUniversityEdition/71442_example/Mydata.txt”; ____________________ 23 ERROR 23-2: Invalid option name SASUNIVERSITYEDITION. 74 ! infile “C:/folders/myshortcuts/SASUniversityEdition/71442_example/Mydata.txt”; ________ 23 ERROR 23-2: Invalid option name _EXAMPLE. 75 input Gender $ Age Height Weight; 76 run; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.DEMOGRAPHIC may be incomplete. When this step was stopped there were 0 observations and 4 variables. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.01 seconds 77 78 79 80 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 92 So what is not set up right? The syntax? The folders? Both?
... View more