<?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: Proc statements with defining measures in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433541#M4546</link>
    <description>&lt;P&gt;"Nothing is working" - this means nothing, what "isn't working", maybe you haven't got the computer switched on for all we know.&amp;nbsp; This looks fine:&lt;/P&gt;
&lt;PRE&gt;proc freq data=mydata.v1mort715;
  tables sna2010_na * leadingcau=15;
run;&lt;/PRE&gt;
&lt;P&gt;And will print freq output to the listing window, assuming the library/dataset exists and contains those variables.&lt;/P&gt;
&lt;P&gt;Also don't code in uppercase.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2018 14:41:26 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-02-02T14:41:26Z</dc:date>
    <item>
      <title>Proc statements with defining measures</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433532#M4545</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get&amp;nbsp;the see the frequency of a specific variable characteristics using Proc statements. And nothing is working. Please see&amp;nbsp;some &amp;nbsp;of my attempts of coding with defining variable characteristics. Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;LMP&lt;/P&gt;&lt;PRE&gt;libname mydata "/folders/myfolders"; run;

PROC TABULATE DATA=mydata.v1Mort715;
Class sna2010_na;
TABLES sna2010_na, leadingcau='15' , Tobac='y';
RUN;


Proc freq data=mydata.v1Mort715;
tables   sna2010_na * leadingcau=15;

run;


Proc means data=mydata.v1Mort715;
freq sna2010_na * leadingcau(15) *tobac=y;
run; &lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433532#M4545</guid>
      <dc:creator>LMP</dc:creator>
      <dc:date>2018-02-02T14:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc statements with defining measures</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433541#M4546</link>
      <description>&lt;P&gt;"Nothing is working" - this means nothing, what "isn't working", maybe you haven't got the computer switched on for all we know.&amp;nbsp; This looks fine:&lt;/P&gt;
&lt;PRE&gt;proc freq data=mydata.v1mort715;
  tables sna2010_na * leadingcau=15;
run;&lt;/PRE&gt;
&lt;P&gt;And will print freq output to the listing window, assuming the library/dataset exists and contains those variables.&lt;/P&gt;
&lt;P&gt;Also don't code in uppercase.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433541#M4546</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-02T14:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc statements with defining measures</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433546#M4548</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="log error in code sas.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18279iF920882691BAC746/image-size/large?v=v2&amp;amp;px=999" role="button" title="log error in code sas.PNG" alt="log error in code sas.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please see the attached screen shot of the error within the &amp;nbsp;log for that&amp;nbsp; particular code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433546#M4548</guid>
      <dc:creator>LMP</dc:creator>
      <dc:date>2018-02-02T14:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc statements with defining measures</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433551#M4550</link>
      <description>&lt;P&gt;So that tells you what the problem is, this:&lt;/P&gt;
&lt;PRE&gt;proc freq data=mydata.v1mort715;
  tables sna2010_na * leadingcau=15;
run;&lt;/PRE&gt;
&lt;P&gt;Is invalid as =15 cannot be part of the tables definition.&amp;nbsp; Perhaps there is an option you want, options appear after a slash, e.g. if I want and output dataset:&lt;/P&gt;
&lt;PRE&gt;proc freq data=mydata.v1mort715;
  tables sna2010_na * leadingcau / out=want;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_freq_sect025.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_freq_sect025.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 15:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433551#M4550</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-02T15:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc statements with defining measures</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433567#M4551</link>
      <description>&lt;P&gt;Your tabulate code would have ERRORS about variables with undefined roles. Add the other two variables to a CLASS statement;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc means Freq only allows one variable and it should be one that represents how many times each record is used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general:&lt;/P&gt;
&lt;P&gt;Doesn't work is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of a dataset, the actual results and the expected results. Data should be in the form of a data step. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat&lt;/A&gt;... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 15:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433567#M4551</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-02T15:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc statements with defining measures</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433572#M4552</link>
      <description>&lt;P&gt;&amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 15:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Proc-statements-with-defining-measures/m-p/433572#M4552</guid>
      <dc:creator>LMP</dc:creator>
      <dc:date>2018-02-02T15:37:46Z</dc:date>
    </item>
  </channel>
</rss>

