Hi,
I am running %ProvideSurvivalMacros and %CompileSurvivalTemplate. After I renew the license, it does not work now. I paste information regarding my system and errors/warning encountered. I appreciate any advice and resolution in advance. Thanks.
SAS (r) Proprietary Software 9.4 (TS1M5)
NOTE: Updated analytical products:
SAS/STAT 14.3
SAS/IML 14.3
Questions:
data _null_;
%let url = //support.sas.com/documentation/onlinedoc/stat/ex_code/143;
infile "http:&url/templft.html" device=url;
file 'macros.tmp';
retain pre 0;
input;
_infile_ = tranwrd(_infile_, '&', '&');
_infile_ = tranwrd(_infile_, '<' , '<');
if index(_infile_, '</pre>') then pre = 0;
if pre then put _infile_;
if index(_infile_, '<pre>') then pre = 1;
run;
%inc 'macros.tmp' / nosource;
%ProvideSurvivalMacros
-
WARNING: Apparent invocation of macro PROVIDESURVIVALMACROS not resolved.
ERROR 180-322: Statement is not valid or it is used out of proper order.
How are you running the program? EG? SAS Studio? Classic Windowing system?
It could be a permission problem. When you run the DATA _NULL_ step, check the SAS log. You should see something like
NOTE: The file 'macros.tmp' is:
Filename=C:\Users\apass\macros.tmp,
Check to make sure there are no errors in the log.
You don't have to run the DATA _NULL_ step. You can just cut/paste the macro into your active session.
Or, you can use a text editor to store the file anywhere.you want. For example,
1. create the file
C:\Downloads\KMmacros.sas
2. Cut and paste the text of the macro, which is available at
http://support.sas.com/documentation/onlinedoc/stat/ex_code/143/templft.html
3. Save the file.
4. Inside your SAS session, run
%inc "C:\Downloads\KMmacros.sas";
%ProvideSurvivalMacros
How are you running the program? EG? SAS Studio? Classic Windowing system?
It could be a permission problem. When you run the DATA _NULL_ step, check the SAS log. You should see something like
NOTE: The file 'macros.tmp' is:
Filename=C:\Users\apass\macros.tmp,
Check to make sure there are no errors in the log.
You don't have to run the DATA _NULL_ step. You can just cut/paste the macro into your active session.
Or, you can use a text editor to store the file anywhere.you want. For example,
1. create the file
C:\Downloads\KMmacros.sas
2. Cut and paste the text of the macro, which is available at
http://support.sas.com/documentation/onlinedoc/stat/ex_code/143/templft.html
3. Save the file.
4. Inside your SAS session, run
%inc "C:\Downloads\KMmacros.sas";
%ProvideSurvivalMacros
Thank you. It is helpful.
great works perfectly thank you
Thankyou so much for this solution.
I also used it, now I see that the CL limits in the summary table is zero, any advice on how to fix the zeros?
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.