BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Andrewpass
Fluorite | Level 6

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_, '&lt;' , '<');

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

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

 

 

 

 

 

 

View solution in original post

4 REPLIES 4
Rick_SAS
SAS Super FREQ

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

 

 

 

 

 

 

Jacobs
Calcite | Level 5

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?

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 4801 views
  • 1 like
  • 4 in conversation