<?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: Create two range variables in order to pull a percent from a total count in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Create-two-range-variables-in-order-to-pull-a-percent-from-a/m-p/790593#M32500</link>
    <description>&lt;P&gt;UNTESTED CODE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value billf 
        11-13='Not High Billing Code'
        14-15='High Billing Code';
run;
proc freq data=have;
     weight cod_ct;
     tables hn*cod/noprint out=want;
     format cod billf.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can remove observations from WANT where the high billing code is not 50% or more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want tested code, please provide the data as SAS data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;instructions&lt;/A&gt;) and not as screen captures, and not in other formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ADVICE: SAS has lots of built in functions that you should be using, rather than coding up your own version of the function in PROC SQL. PROC FREQ should be your first choice for computing percents and frequencies. Yes, SQL can do it, but PROC FREQ has been debugged by SAS and validated in thousands of real world situations; if you do it with your own custom SQL code, you have to vouch for the correctness of the results (and of course, you also have to struggle to get the proper SQL code).&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2022 21:22:53 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-01-17T21:22:53Z</dc:date>
    <item>
      <title>Create two range variables in order to pull a percent from a total count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-two-range-variables-in-order-to-pull-a-percent-from-a/m-p/790592#M32499</link>
      <description>&lt;P&gt;Hello all.&amp;nbsp; I have had a four year break from coding DB SQL, and now I am taking a course in SAS Enterprise Guide. I was given an assignment to pull a percentage from 2 range variables.&amp;nbsp; One range is for high medical codes, and the other is for low medical codes.&amp;nbsp; Below is a screen shot of the directions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardHousman_0-1642449739498.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67473i6581FA94086D4939/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardHousman_0-1642449739498.png" alt="EdwardHousman_0-1642449739498.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below is a yes/no data scenario of the records that would be pulled.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardHousman_1-1642450204681.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67474i60488B6C859C64B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardHousman_1-1642450204681.png" alt="EdwardHousman_1-1642450204681.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;HN=Hospital_Num&lt;/P&gt;&lt;P&gt;COD=Proc_Code&lt;/P&gt;&lt;P&gt;CT= Total Claim Count for Proc_Code&lt;/P&gt;&lt;P&gt;Include Yes/No = my explanation of why a record would be included in the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output Example&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardHousman_2-1642450857402.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67475iF938AE36F686CDB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardHousman_2-1642450857402.png" alt="EdwardHousman_2-1642450857402.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;My code is generated in EG. My code gives a count of the different codes.&amp;nbsp; What I need is to get a total of the high range codes ('14','15') and divide this by a total of all code counts grouped by hospital.&amp;nbsp; This is where I can get a percentage of the high code counts each hospital has.&amp;nbsp; I believe this might be done with compound case statements.&amp;nbsp; I used case statements to get the counts of the individual counts.&amp;nbsp; See Code below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;SQL&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;CREATE&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;DBS.t_flags&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;AS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;t1.HN,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;t1.COD,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;/* sum_code */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SUM((&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;CASE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;WHEN&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;t1.COD&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;between&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;'14'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;'15'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;t1.cod&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;not&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;between&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;'14'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;'15'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;)))&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;sum_cod&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;DBS.T_DETAIL t1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;GROUP&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;BY&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;t1.BN,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.COD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;ORDER&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;BY&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;t1.BN,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;QUIT&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;Any assistance would be greatly appreciated.&amp;nbsp; I would like to become an expert in Proc SQL, and even data step. It would be great if I learn enough to help others out on this website.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;Sincerely,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;Edward&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 20:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-two-range-variables-in-order-to-pull-a-percent-from-a/m-p/790592#M32499</guid>
      <dc:creator>EdwardHousman</dc:creator>
      <dc:date>2022-01-17T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create two range variables in order to pull a percent from a total count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-two-range-variables-in-order-to-pull-a-percent-from-a/m-p/790593#M32500</link>
      <description>&lt;P&gt;UNTESTED CODE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value billf 
        11-13='Not High Billing Code'
        14-15='High Billing Code';
run;
proc freq data=have;
     weight cod_ct;
     tables hn*cod/noprint out=want;
     format cod billf.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can remove observations from WANT where the high billing code is not 50% or more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want tested code, please provide the data as SAS data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;instructions&lt;/A&gt;) and not as screen captures, and not in other formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ADVICE: SAS has lots of built in functions that you should be using, rather than coding up your own version of the function in PROC SQL. PROC FREQ should be your first choice for computing percents and frequencies. Yes, SQL can do it, but PROC FREQ has been debugged by SAS and validated in thousands of real world situations; if you do it with your own custom SQL code, you have to vouch for the correctness of the results (and of course, you also have to struggle to get the proper SQL code).&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 21:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-two-range-variables-in-order-to-pull-a-percent-from-a/m-p/790593#M32500</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-17T21:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create two range variables in order to pull a percent from a total count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-two-range-variables-in-order-to-pull-a-percent-from-a/m-p/790599#M32503</link>
      <description>Thanks so much Paige. Is PROC FREQ a procedure in data step? I believe this will solve the problem. I will look on this site for examples of PROC FREQ. Thanks much.</description>
      <pubDate>Mon, 17 Jan 2022 21:52:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-two-range-variables-in-order-to-pull-a-percent-from-a/m-p/790599#M32503</guid>
      <dc:creator>EdwardHousman</dc:creator>
      <dc:date>2022-01-17T21:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create two range variables in order to pull a percent from a total count</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-two-range-variables-in-order-to-pull-a-percent-from-a/m-p/790660#M32512</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/412524"&gt;@EdwardHousman&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks so much Paige. Is PROC FREQ a procedure in data step? &lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;PROC FREQ is a procedure. It is not in the data step. Documentation and examples: &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/procstat/procstat_freq_toc.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmmvacdc/9.4/procstat/procstat_freq_toc.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 10:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-two-range-variables-in-order-to-pull-a-percent-from-a/m-p/790660#M32512</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-18T10:54:22Z</dc:date>
    </item>
  </channel>
</rss>

