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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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