BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
ChuksManuel
Pyrite | Level 9

Hello programmers,

 

Can anyone let me know what the QDrive in this code is? I has tried to assign the lbrary to my directory by swapping and changing the codes but it still gives me errors. 

%let Qdrive = \\Cdc\project\CCHP_NCCD_DACH_BRFSS;
%let CYYYY  = 2014;

LIBNAME LIBRARY "&Qdrive\BRFSS\PROJECTS\ASTHMA\&CYYYY\LIBRARY";

Proc FORMAT LIBRARY=LIBRARY;
  Value  $BIRTHW1z
  "000001" - "003015" = "Pounds/Ounces "
  "777777" = "Don't know "
  "999999" = "Refused "
  " " = "Partial complete "
  ;
 
  Value  $HEIGHT1z
  "0001" - "0811" = "Feet/Inches "
  "7777" = "Don't know "
  "9999" = "Refused "
  " " = "Partial complete "
  ;
 
  Value  $IDAY_F
  "1" - "31" = "Interview day "

 doing 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

I would from the usage expect that it points to a server named CDC and the path for the user from the default location the user has there.

 

If that is not a path to your data then you should provide the actual path. In windows that would be starting at a Drive such as C:\\ (which you see might be missing the LETTER in your Qdrive definition) or a Unix/Linux drive mount.

 

When you get ERRORS you should include the LOG with the code that generates the error and all the messages generated. Copy the text from the log, on this forum open a text box with the </> icon that appears above the main message window and paste the text.

The text box prevents the message window from reformatting text which can make the diagnostic characters SAS often supplies appear in the wrong place.

View solution in original post

1 REPLY 1
ballardw
Super User

I would from the usage expect that it points to a server named CDC and the path for the user from the default location the user has there.

 

If that is not a path to your data then you should provide the actual path. In windows that would be starting at a Drive such as C:\\ (which you see might be missing the LETTER in your Qdrive definition) or a Unix/Linux drive mount.

 

When you get ERRORS you should include the LOG with the code that generates the error and all the messages generated. Copy the text from the log, on this forum open a text box with the </> icon that appears above the main message window and paste the text.

The text box prevents the message window from reformatting text which can make the diagnostic characters SAS often supplies appear in the wrong place.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 579 views
  • 0 likes
  • 2 in conversation