Based on the instructions I came up with the following code :
Proc contents data="/folders/myfolders/EPG194/data/storm_summary.sas7bdat”;
run;
however, am being met with the below error.
It looks like the closing double quotation isn't the same as the initial double quotation. Could you try deleting the ending quote, retype the double quote, and try it again?
Proc contents data="/folders/myfolders/EPG194/data/storm_summary.sas7bdat"; /* <- Change ending quote from ” to " */
run;
Quotes copied from an application like Microsoft Word can sometimes be different from plain text quotes that you'd type in a .TXT file or a SAS program. SAS recognizes plain text quotes, not the edited quotes.
Interestingly when I paste your code
Proc contents data="/folders/myfolders/EPG194/data/storm_summary.sas7bdat”; run;
into my SAS editor for the Display Manager the final ” quote does not even appear.
Depending on your syntax highlighting settings the string starting with " would not be closed and would show the ";run;" and any following text as part of the data name.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.
Find more tutorials on the SAS Users YouTube channel.