DATA Step, Macro, Functions and more

libname format

Reply
New Contributor
Posts: 2

libname format

Hi, friends 
  When I type libname statement, it gives me this problem
 
90 Options PS = 56 LS =78;
91 Libname stat480'/folders/myshortcuts/S2/STAT480.sas';
 
ERROR: Library STAT480 is not in a valid format for access method RANDOM.
ERROR: Error in the LIBNAME statement.
 
How do I fix this problem. 
Attachment
Super User
Posts: 3,250

Re: libname format

[ Edited ]
Posted in reply to zibinkevingao

A LIBNAME should point to a directory containing SAS datasets. It looks like yours points to a SAS program. Something like this should work:

 

Libname stat480 '/folders/myshortcuts/S2/';
Ask a Question
Discussion stats
  • 1 reply
  • 171 views
  • 0 likes
  • 2 in conversation