Hi everyone,
Below is the Libname statements I am using, I keep getting an Error on Libname "HypeResults." Here is a copy of the Libname and the log:
%LET CourseRoot = /folders/myfolders/My Folders/BIOS6680;
LIBNAME HypTabs "/folders/myfolders/My Folders/BIOS6680/Cancer RCT/Data/3_Tabulations";
LIBNAME Hypan1 "/folders/myfolders/My Folders/BIOS6680/Cancer RCT/Data/4_Analysis";
Libname HypResults "/folders/myfolders/My Folders/BIOS6680/Cancer RCT/Data/5_Results";
/* Enter additional LIBNAME statements */
/* Enter any necessary options in an OPTIONS statement*/
OPTIONS FMTSEARCH= (Hyptabs.hypformats WORK LIBRARY)
NOFMTERR;
Do you initially see anything wrong with my HypResults Libname?
Hi there!
I believe this naming convention may be too long. Try "HypRslt" instead of HypResults
Hi there!
I believe this naming convention may be too long. Try "HypRslt" instead of HypResults
Libname HypResults "/folders/myfolders/My Folders/BIOS6680/Cancer RCT/Data/5_Results";
Libnames are always limited to a maximum of 8 characters, the first character must be a letter or the _ character, others letter, digit or _. No other characters allowed.
Hi Breanna,
Another issue you may be having is that your LIBNAME statements include "Cancer RCT" in the location route. I believe this should be "Hypertension Study" instead. Hope this also helps 🙂
LIBNAME HypTabs "/folders/myfolders/My Folders/BIOS6680/Cancer RCT/Data/3_Tabulations";
LIBNAME Hypan1 "/folders/myfolders/My Folders/BIOS6680/Cancer RCT/Data/4_Analysis";
Libname HypResults "/folders/myfolders/My Folders/BIOS6680/Cancer RCT/Data/5_Results";
Hey BHufman,
Regarding your libname error, I am pretty sure the libname statement can only be 8 character long. So would need to reduce it HypRslts at the max in order have it be valid.
Hi Bre!
I was having a really similar issue when working with the HypAnalysis1 data set for homework. I think your LIBNAME statement might be too long (I used HypRes)! Also, im not sure what version of SAS you may be using but I had a ton of issues with SAS OnDemand when I was using it (raw data wouldn't open, libraries weren't saving correctly, etc) and I can honestly say when I downloaded university edition I had way less issues like this! Hope this helps 🙂
Best,
Brandon
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.