Thanks, you're right, I didn't mean to concatenate the libname but concatenate the, well, I don't know what it could be called, the actual library name, like you do a character variable. but actually, that may do what I wanted: libname test ("\\Desktop\data" "d:\data\"); If that were on the laptop with access to the network, then it would go to the Desktop via the network, but if it did not have access to the network, then it would go to the second choice. >Hi Bahr, > >ballardw (Super User) posted a new reply in >SAS >Programming on 06-14-2019 04:19 PM : > > >---------- > > >Re: >Creating a concatenated Libname using a macro (%let) > > > >I don't want to add confusion but you may want to be careful using >the phrase "concatenated libname" as in your subject line as that >sounds like you want to concatenate libraries, i.e. reference >multiple storage areas with a single library name. > >Â > >The libname does that by something such as > >Â > >libname all (Â "d:\data1"Â Â "d:\data2" Â "d:\data3" Â "d:\data4"); > >Â > >Not a good idea if you have multiple data sets with the same name >but can be useful to reference data sets stored in separate >locations without having to keep track of which set is in which library. > >Reply >| >Accept >as Solution | >Like >this message > > > >---------- >SAS Support Communities sent this message to >bahr.weiss@gmail.com. >You are receiving this email because a new message matches your >subscription to a topic. >To control which emails we send you please go to, >manage >your subscription > >
... View more