If i execute the above line once again for the second program i am getting the error
ERROR: Unable to clear or reassign the library macrolib because it is still in use ;
ERROR: Error in libname statement
I have checked with SAS Links which gives the work around in the below link
If the ODS PATH RESET does not work for you, as described in the Tech Support Note, then you might consider contacting SAS Tech Support. There may be other issues with your code. I do notice that your libref is called "macrolib" -- it may be possible that if you are putting templates and autocall macros in the same location that access and/or updating of the macro code is preventing the reassignment of the library. But that's only speculation on my part. I generally keep my macro programs separate from my template store.
Again, Tech Support can look at all your code and your libraries and help you figure out the best solution.
Yes ur right i am using Macro and template in one location now i removed the template, even though its is giving the same error i have stored catalog macro in that location its is saying the same error
I highly recommend that you contact Tech Support. If the ODS PATH RESET didn't work and if separating the templates from the macros was not the issue, then Tech Support can investigate in more depth. You can open a track by following the instructions at this link: http://support.sas.com/ctx/supportform/createForm