Hi, I was following the captioned tutorial under the free course SAS® Programming 1: Essentials. The activity asked to perform as below: " Open a new program window and perform the following tasks: Write a PROC CONTENTS step to generate a report of the storm_summary.sas7bdat table. SAS Studio: Specify the path to your EPG194/data folder and the full name of the table. Enterprise Guide: Specify &path and the full name of the table. " What i did first was that I manually opened the foilder containing the above file from "My Computer" and then got its file directory from its properties. I then copied the same directory in the Proc Contents step and executed it as per the instructions. SAS code is as below: proc contents data="E:\SASUniversityEdition\myfolders\EPG194/storm_summary.sas7bdat";
run; Then i got an error message which i have attached as Attachment 1 Subsequently I figured out the file location by accessing it through the SAS Studio and found the location address which I have attached as Attachment 2. The address is "/folders/myfolders/EPG194/data/storm_summary.sas7bdat" . By copy pasting this address, into the Proc contents code, i could get the summary table. But my question is that why did the original file path which i took from the My Computer did not work and why the other file path which i got from SAS studio only worked. Moreover the file path mentioned in SAS studio started with /folders, whereas in reality the "My Folders" folder was not created in any such folder by name "folders". How would a new learner be able to figure out this file path logic ? or how would a new comer be able to write the file path without viewing it through the GUI by clicking the properties ?
... View more