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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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