Are you trying to point the libref to a different location? Or are you just re-running the code that assigned the libref? If the latter then test first before defining the library. Here is can example command using the IFC and LIBREF functions to conditionally issue the libname statement only when the libref does not already exist. 4 %sysfunc(ifc(%sysfunc(libref(macros)),libname macros '~/temp',)); NOTE: Libref MACROS was successfully assigned as follows: Engine: V9 Physical Name: /home/abernt/temp 5 %sysfunc(ifc(%sysfunc(libref(macros)),libname macros '~/temp',)); The other thing to consider is changing the SASMSTORE option before trying to modify the libref.
... View more