<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: macro %newsurv in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613583#M179210</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/146852"&gt;@sms1891&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi ballard,&lt;/P&gt;
&lt;P&gt;Thanks for the email. I work on the remote desktop server and It does not let me copy the log and post it on the blog. How should I go about this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran the syntax&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%newsurv (DATA=two, TIME=dur_study_yrs, CENS=PDAC, CEN_VL=0, SUMMARY=0, CLASS=GROUP, CLASSREF=NON-SMOKER, XINCREMENT=1, XMAX=10, YLABEL= cumulative incidence, RISKLIST 0 to 100 by 10, RISKLOCATION=BOTTOM, METHOD=CIF, EV_VL=1);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the error I am getting&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: Apparent invocation of macro NEWSURV not resolved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you compile the macro?, i.e. run the code that starts with %macro newsurv (&amp;nbsp;&amp;nbsp;&amp;nbsp; ) through %mend;&lt;/P&gt;
&lt;P&gt;If you don't compile the macro it is not available in the current SAS Session.&lt;/P&gt;
&lt;P&gt;Example;&lt;/P&gt;
&lt;PRE&gt;480  %dummy(a parameter);
     -
     180
WARNING: Apparent invocation of macro DUMMY not resolved.

ERROR 180-322: Statement is not valid or it is used out of proper order.

&lt;/PRE&gt;
&lt;P&gt;But if I submit the macro code first.&lt;/P&gt;
&lt;PRE&gt;481  %macro dummy(parm);
482     %put &amp;amp;parm.;
483  %mend;
NOTE: The macro DUMMY completed compilation without errors.
      7 instructions 124 bytes.
484
485  %dummy(a parameter);
a parameter
&lt;/PRE&gt;
&lt;P&gt;Here it is easy to see that macro code was submitted and completed without errors. If you submitted the macro code but get an error the macro will not be available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or if you misspell the macro when using it, then a version is not available. Once the macro is compiled in the current session it should be available as long as the session runs. But you will need to resubmit the code the next time you want to use the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need this macro frequently you may need to talk to your SAS admin about setting up an AUTOCALL library for macro code to be available for compilation when needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use proc printto to direct the log the a text file and then copy the file and attach that. If you can't copy text or files then make sure the resolution of the images posted is large enough to read. But the log with the MPRINT option can get quite lengthy and a single image could be quite obnoxious.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2019 17:26:40 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-12-23T17:26:40Z</dc:date>
    <item>
      <title>macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613558#M179193</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Hope the holiday season is going well for everyone. I am having issues with running the %newsurv macro for generating cumulative incidence curves. I have reviewed the %newsurv macro on the&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747&lt;/A&gt;&amp;nbsp;website but when I am trying to apply it for my own data set, I am getting errors.&lt;/P&gt;&lt;P&gt;My data set name is Two, the duration variable is dur_Study_yrs and outcome of interest is PDAC (Yes=1, No=0), grouping variable of interest is Group (NON-Smoker, Past-Smoker, Smoker). I would like to keep Xaxis and Yaxis consistent for all the graphs I generate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;WARNING: Apparent invocation of macro NEWSURV not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%newsurv (DATA=two, TIME=dur_study_yrs, CENS=PDAC, CEN_VL=0, SUMMARY=0, CLASS=GROUP, CLASSREF=NON-SMOKER, XINCREMENT=1, XMAX=10, YLABEL= cumulative incidence, RISKLIST 0 to 100 by 10, RISKLOCATION=BOTTOM, METHOD=CIF, EV_VL=1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any help with this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching the pictures with the SAS macro and the error message that I am getting.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_7784 (002).jpg" style="width: 320px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35013iF849D948850CD04D/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_7784 (002).jpg" alt="IMG_7784 (002).jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_7785 (002).jpg" style="width: 320px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35014iF3697750C6955A71/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_7785 (002).jpg" alt="IMG_7785 (002).jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:29:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613558#M179193</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2019-12-23T16:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613562#M179196</link>
      <description>&lt;P&gt;&lt;SPAN&gt;My SAS is 9.04.01M5P091317. I have SAS 9.04, Operating system LIN X64. I uses SAS enterprise guide 7.1.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613562#M179196</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2019-12-23T16:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613568#M179202</link>
      <description>&lt;P&gt;Set OPTIONS MPRINT.&lt;/P&gt;
&lt;P&gt;Run the macro.&lt;/P&gt;
&lt;P&gt;Copy the text from log including the generated MPRINT output plus any errors. Paste the Text into a code box opened on the forum with the {I} to preserve formatting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the copied text we can highlight bits or copy/edit/paste changes to make suggestions or corrections. We can't do that with pictures.&lt;/P&gt;
&lt;P&gt;And I at least can't get those images large enough to actually read any of the text.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 17:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613568#M179202</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-23T17:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613572#M179204</link>
      <description>&lt;P&gt;Hi ballard,&lt;/P&gt;&lt;P&gt;Thanks for the email. I work on the remote desktop server and It does not let me copy the log and post it on the blog. How should I go about this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the syntax&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%newsurv (DATA=two, TIME=dur_study_yrs, CENS=PDAC, CEN_VL=0, SUMMARY=0, CLASS=GROUP, CLASSREF=NON-SMOKER, XINCREMENT=1, XMAX=10, YLABEL= cumulative incidence, RISKLIST 0 to 100 by 10, RISKLOCATION=BOTTOM, METHOD=CIF, EV_VL=1);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the error I am getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro NEWSURV not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 17:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613572#M179204</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2019-12-23T17:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613577#M179207</link>
      <description>&lt;P&gt;If possible use proc printto to save the log as text file in a directory you can read from&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto file="&amp;lt;path and file name&amp;gt;"; run;

... your code

proc printto; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Dec 2019 17:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613577#M179207</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-12-23T17:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613578#M179208</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/146852"&gt;@sms1891&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi ballard,&lt;/P&gt;
&lt;P&gt;Thanks for the email. I work on the remote desktop server and It does not let me copy the log and post it on the blog. How should I go about this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran the syntax&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%newsurv (DATA=two, TIME=dur_study_yrs, CENS=PDAC, CEN_VL=0, SUMMARY=0, CLASS=GROUP, CLASSREF=NON-SMOKER, XINCREMENT=1, XMAX=10, YLABEL= cumulative incidence, RISKLIST 0 to 100 by 10, RISKLOCATION=BOTTOM, METHOD=CIF, EV_VL=1);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the error I am getting&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: Apparent invocation of macro NEWSURV not resolved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You did not run the macro&amp;nbsp;&lt;EM&gt;definition&lt;/EM&gt; first.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 17:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613578#M179208</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-23T17:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613579#M179209</link>
      <description>&lt;P&gt;Thanks for the response Kurt. How do I run the macro definition? Can you please clarify it for me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 17:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613579#M179209</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2019-12-23T17:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613583#M179210</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/146852"&gt;@sms1891&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi ballard,&lt;/P&gt;
&lt;P&gt;Thanks for the email. I work on the remote desktop server and It does not let me copy the log and post it on the blog. How should I go about this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran the syntax&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%newsurv (DATA=two, TIME=dur_study_yrs, CENS=PDAC, CEN_VL=0, SUMMARY=0, CLASS=GROUP, CLASSREF=NON-SMOKER, XINCREMENT=1, XMAX=10, YLABEL= cumulative incidence, RISKLIST 0 to 100 by 10, RISKLOCATION=BOTTOM, METHOD=CIF, EV_VL=1);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the error I am getting&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: Apparent invocation of macro NEWSURV not resolved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you compile the macro?, i.e. run the code that starts with %macro newsurv (&amp;nbsp;&amp;nbsp;&amp;nbsp; ) through %mend;&lt;/P&gt;
&lt;P&gt;If you don't compile the macro it is not available in the current SAS Session.&lt;/P&gt;
&lt;P&gt;Example;&lt;/P&gt;
&lt;PRE&gt;480  %dummy(a parameter);
     -
     180
WARNING: Apparent invocation of macro DUMMY not resolved.

ERROR 180-322: Statement is not valid or it is used out of proper order.

&lt;/PRE&gt;
&lt;P&gt;But if I submit the macro code first.&lt;/P&gt;
&lt;PRE&gt;481  %macro dummy(parm);
482     %put &amp;amp;parm.;
483  %mend;
NOTE: The macro DUMMY completed compilation without errors.
      7 instructions 124 bytes.
484
485  %dummy(a parameter);
a parameter
&lt;/PRE&gt;
&lt;P&gt;Here it is easy to see that macro code was submitted and completed without errors. If you submitted the macro code but get an error the macro will not be available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or if you misspell the macro when using it, then a version is not available. Once the macro is compiled in the current session it should be available as long as the session runs. But you will need to resubmit the code the next time you want to use the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need this macro frequently you may need to talk to your SAS admin about setting up an AUTOCALL library for macro code to be available for compilation when needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use proc printto to direct the log the a text file and then copy the file and attach that. If you can't copy text or files then make sure the resolution of the images posted is large enough to read. But the log with the MPRINT option can get quite lengthy and a single image could be quite obnoxious.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 17:26:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613583#M179210</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-23T17:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613589#M179214</link>
      <description>&lt;P&gt;Thanks ballard. I think I understood what you and Kurt were saying. I did not compile the macro, but can you be more specific with the compilation of macro for my data set? I am not sure what goes in parameter part of the macro code. Can you help me with that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am offsite, if I get any further errors after running the macro, I will keep you posted for any help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro newsurv (parm)
%put &amp;amp;parm.;

%mend;



%newsurv (DATA=two, TIME=dur_study_yrs, CENS=PDAC, CEN_VL=0, SUMMARY=0, CLASS=GROUP, CLASSREF=NON-SMOKER, XINCREMENT=1, XMAX=10, YLABEL= cumulative incidence, RISKLIST 0 to 100 by 10, RISKLOCATION=BOTTOM, METHOD=CIF, EV_VL=1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 17:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613589#M179214</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2019-12-23T17:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613593#M179215</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/146852"&gt;@sms1891&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the response Kurt. How do I run the macro definition? Can you please clarify it for me?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The macro definition starts with a %macro statement and ends with %mend. Run the whole code including both those statements, and then inspect the log to see if the macro compiled correctly. Then you can use it as documented.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 17:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613593#M179215</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-23T17:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613594#M179216</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/146852"&gt;@sms1891&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am not sure what goes in parameter part of the macro code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Maxim 1: Read the Documentation, in this case the documentation of the macro. It will tell you how to run it.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 18:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613594#M179216</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-23T18:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613636#M179232</link>
      <description>&lt;P&gt;If the macro is properly designed then you do not change any of the original code for the macro definition.&lt;/P&gt;
&lt;P&gt;Instead you pass in your values of the parameters when you call the macro.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 21:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613636#M179232</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-23T21:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613639#M179234</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/146852"&gt;@sms1891&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks ballard. I think I understood what you and Kurt were saying. I did not compile the macro, but can you be more specific with the compilation of macro for my data set? I am not sure what goes in parameter part of the macro code. Can you help me with that?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am offsite, if I get any further errors after running the macro, I will keep you posted for any help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro newsurv (parm)
%put &amp;amp;parm.;

%mend;



%newsurv (DATA=two, TIME=dur_study_yrs, CENS=PDAC, CEN_VL=0, SUMMARY=0, &lt;BR /&gt;	CLASS=GROUP, CLASSREF=NON-SMOKER, XINCREMENT=1, XMAX=10, &lt;BR /&gt;	YLABEL= cumulative incidence,&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt; RISKLIST 0 to 100 by 10&lt;/STRONG&gt;&lt;/FONT&gt;, &lt;BR /&gt;	RISKLOCATION=BOTTOM, METHOD=CIF, EV_VL=1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I really dislike lines of code that exceed the window width so I wrapped your macro call for readability.&lt;/P&gt;
&lt;P&gt;I strongly suspect that you are missing an &lt;STRONG&gt;=&lt;/STRONG&gt; after Risklist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also your "dummy" version of Newsurv is missing a semicolon at the end of the %macro statement and that macro won't compile properly.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 22:10:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613639#M179234</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-23T22:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: macro %newsurv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613920#M179385</link>
      <description>&lt;P&gt;Thank you for all the help. I found the macro at the bottom of the page where the macro examples are given.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 15:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-newsurv/m-p/613920#M179385</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2019-12-26T15:58:17Z</dc:date>
    </item>
  </channel>
</rss>

