BookmarkSubscribeRSS Feed
melissagodfrey
Fluorite | Level 6

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.

 

ERROR: The physical file name "/folders/myfolders/EPG194/data/storm_summary.sas7bdat”; run;OPTIONS NONOTES NOSTIMER NOSOURCE
NOSYNTAXCHECK;ODS HTML CLOSE; ; ;*';*" is too long
 
To get my file path, i simply clicked on epg14/ data and went to properties and selected the location, then got the full name from the storm summary properties and put that after the location. I also tried to copy and paste the location from the storm summary properties but this gave me the same error. Please assist?
4 REPLIES 4
PremS
Obsidian | Level 7

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.

melissagodfrey
Fluorite | Level 6
Fantastical! Thanks for the prompt response, i would have never guessed something like that. it worked!
ballardw
Super User

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 finalquote 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.

Cynthia_sas
SAS Super FREQ
Ah, when copying and pasting code, the "curly" quotes can mess up the code in many different editor windows -- whether you're using SAS on Windows with Display Manager, SAS EG or SAS Studio. Most of the folks who have issues are copying and pasting from a Word doc or PowerPoint, which usually have "curly quotes" turned on. You have to change this option to use what Word and PowerPoint call "straight quotes" or else your SAS code causes a hiccup in the compiler and possible error in the log.
Cynthia

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

LIBNAME 101

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.

Discussion stats
  • 4 replies
  • 4254 views
  • 4 likes
  • 4 in conversation