Error Unable To Clear Or Re-assign The Library
turn on suggestions Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. Showing results for Search instead for Do you mean Find a Community Communities Welcome Getting Started Community Memo Community Matters Community Suggestion Box Have Your Say SAS Programming Base SAS Programming SAS Procedures ODS and Base Reporting SAS/GRAPH and ODS Graphics General SAS Programming SAS Studio Data Management SAS Data Management Analytics SAS Statistical Procedures SAS/IML Software and Matrix Computations SAS Data Mining SAS Text and Content Analytics SAS Forecasting and Econometrics Mathematical Optimization, Discrete-Event Simulation, and OR Business Intelligence SAS Enterprise Guide Integration with Microsoft Office SAS Visual Analytics SAS Web Report Studio SAS Stored Processes Administration Administration and Deployment SAS Hot Fix Announcements SAS ITRM Learn SAS SAS Analytics U SAS Certification Customer Intelligence SAS Customer Intelligence SAS Intelligent Advertising Risk Management SAS Risk Management SAS Viya About SAS Viya SAS Visual Data Mining and Machine Learning Coding on SAS Viya SAS Visual Investigator Health Care and Pharma SAS in Health Care Related Fields SAS Drug Development SASware Ballot Ideas Regional Groups Special Interest Groups SAS Community Denmark SANZOC CoDe SAS German SAS Visual Analytics Nederland Singapore SAS Global Forum 2017 SAS Communities Library Home / SAS Programming / Base SAS Programming / ERROR: Unable to clear or re-assign the library MA... ERROR: Unable to clear or re-assign the library MACROS because it is still Reply Topic Options Subscribe to RSS Feed Mark Topic as New Mark Topic as Read Float this Topic to the Top Bookmark Subscribe Printer Friendly Page « Message Listin
in my code. I that macro i am assigning library ARDATA. Since i amcalling user defined macro twice in the same session i am this error forlibrary assignments.First time when i am calling i have no problem. But when i call secondtime i getting this error. Please any one can help me in this.ERROR : Unable to clear or re-assign the library ARDATA because it isstill in use.Cheers,Suhas Joep Steeman 2008-06-17 12:15:24 UTC PermalinkRaw Message Post by Suhas K RHi all,I am running my program https://communities.sas.com/t5/Base-SAS-Programming/ERROR-Unable-to-clear-or-re-assign-the-library-MACROS-because-it/td-p/17844 in batch mode. I am calling user defined macrotwice in my code. I that macro i am assigning library ARDATA. Since i amcalling user defined macro twice in the same session i am this error forlibrary assignments.First time when i am calling i have no problem. But when i call secondtime i getting this error. Please any one can help me in http://comp.soft-sys.sas.narkive.com/jJiRzu3o/i-am-getting-error-unable-to-clear-or-re-assign-the-library this.ERROR : Unable to clear or re-assign the library ARDATA because it isstill in use.Cheers,SuhasYou may want to implement a test for the existance of a libref.Consider the next macro±%macro libref_exist(lib =, libpath =);%if %sysfunc(libref(&lib)) %then %do;%put libref &lib is not assigned, will be created;%sysfunc(libname(&lib, &libpath));%end;%else %put libref &lib already assigned;%mend libref_exist;%libref_exist(lib=ardata, libpath = your_library); /* <=== no quoteshere */Regards, Joep Michael Raithel 2008-06-17 12:37:09 UTC PermalinkRaw Message Dear SAS-L-ers,Post by Suhas K RI am running my program in batch mode. I am calling userdefined macro twice in my code. I that macro i am assigninglibrary ARDATA. Since i am calling user defined macro twicein the same session i am this error for library assignments.First time when i am calling i have no problem. But when icall second time i getting this error. Please any one canhelp me in this.ERROR : Unable to clear or re-assign the library ARDATAbecause it is still in use.Suhas, well then I guess that some changes are in order. I would doeither one of these two things:1. Move the LIBNAME out of the macro to a place where it is in
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
the library Thread Tools Display Modes I am getting ERROR : Unable to clear or re-assign the library Suhas K R Guest Posts: n/a 06-17-2008 Hi all, I am running my program in batch mode. I am calling user defined macro twice in my code. I that macro i am assigning library ARDATA. Since i am calling user defined macro twice in the same session i am this error for library assignments. First time when i am calling i have no problem. But when i call second time i getting this error. Please any one can help me in this. ERROR : Unable to clear or re-assign the library ARDATA because it is still in use. Cheers, Suhas Joep Steeman Guest Posts: n/a 06-17-2008 On 17 jun, 12:30, (E-Mail Removed) (Suhas K R) wrote: > Hi all, > > I am running my program in batch mode. I am calling user defined macro > twice in my code. I that macro i am assigning library ARDATA. Since i am > calling user defined macro twice in the same session i am this error for > library assignments. > First time when i am calling i have no problem. But when i call second > time i getting this error. Please any one can help me in this. > > ERROR : Unable to clear or re-assign the library ARDATA because it is > still in use. > > Cheers, > Suhas You may want to implement a test for the existance of a libref. Consider the next macro± %macro libref_exist(lib =, libpath =); %if %sysfunc(libref(&lib)) %then %do; %put libref &lib is not assigned, will be created; %sysfunc(libname(&lib, &libpath)); %end; %else %put libref &lib already assigned; %mend libref_exist; %libref_exist(lib=ardata, libpath = your_library); /* <=== no quotes here */ Regards, Joep « using proc catmod for longitudinal data analysis. | Detecting similar numbers in two column in a huge data » Thread Tools Show Printable Version Email this Page Display Modes Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are Off Forum Rules Similar Threads Thread Thread Starter Forum Replies Last Post Unable to clear libname - Libname