DATA Step, Macro, Functions and more

Library name exceeds 8 characters

Reply
Contributor QLi
Contributor
Posts: 59

Library name exceeds 8 characters

I have datasets whoes library name exceeds 8 characters.  ButI don't have authourization to change it.  proc contents  does't work.  Anyboby have solution for this case?

Thanks in Advance.

Trusted Advisor
Posts: 2,116

Library name exceeds 8 characters

That is a limitation of the SAS language.  You cannot change it.  The library name on disk can be long, but the libref itself is limited to 8 characters.

Valued Guide
Posts: 2,177

Library name exceeds 8 characters

you could use proc contents with code like

proc contents data= '//the physical path and /long name of library/yourdataset.sas7bdat' ;

run ;

for each of "yourdataset"

but it might be simpler to

libname mylib '//the physical path and /long name of library' ;

proc contents data= mylib._all_ varnum details ;

run ;

good luck

peterC

Ask a Question
Discussion stats
  • 2 replies
  • 2469 views
  • 0 likes
  • 3 in conversation