<?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 proc freq help in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849908#M37188</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vani1493_0-1671121274882.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78592iFFF8A3A6334626F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vani1493_0-1671121274882.png" alt="Vani1493_0-1671121274882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can anyone help how to do proc freq for the Mat variable from the above Excel..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data= dataset name;&lt;/P&gt;&lt;P&gt;table Mat;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Log showing Mat variable is not there in this dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 16:23:53 GMT</pubDate>
    <dc:creator>Vani1493</dc:creator>
    <dc:date>2022-12-15T16:23:53Z</dc:date>
    <item>
      <title>proc freq help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849908#M37188</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vani1493_0-1671121274882.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78592iFFF8A3A6334626F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vani1493_0-1671121274882.png" alt="Vani1493_0-1671121274882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can anyone help how to do proc freq for the Mat variable from the above Excel..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data= dataset name;&lt;/P&gt;&lt;P&gt;table Mat;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Log showing Mat variable is not there in this dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849908#M37188</guid>
      <dc:creator>Vani1493</dc:creator>
      <dc:date>2022-12-15T16:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849909#M37189</link>
      <description>&lt;P&gt;You need to look in the corresponding SAS data set and see for yourself what variable names are in there. More than likely, the process of converting Excel to SAS has changed the variable names.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849909#M37189</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-15T16:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849910#M37190</link>
      <description>&lt;P&gt;I converted it to the SAS dataset.&amp;nbsp; I can do proc freq for heading Maternal_Data, but why cannot we do proc freq for the below variable (the main heading is Maternal_Data and subheadings are No, SN, MA etc.).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=dataset name;&lt;/P&gt;&lt;P&gt;table F;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;the above is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=dataset name;&lt;/P&gt;&lt;P&gt;table Mat;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;The above is not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why...please help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849910#M37190</guid>
      <dc:creator>Vani1493</dc:creator>
      <dc:date>2022-12-15T16:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849911#M37191</link>
      <description>&lt;P&gt;I pointed out the next step. I said:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;You need to look in the corresponding SAS data set and see for yourself what variable names are in there."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please do that. I also explained that sometimes when you convert an Excel file to SAS, the variable names change.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849911#M37191</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-15T16:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849912#M37192</link>
      <description>&lt;P&gt;thank you so much...got it now...variable name changed...&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849912#M37192</guid>
      <dc:creator>Vani1493</dc:creator>
      <dc:date>2022-12-15T16:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849922#M37193</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437568"&gt;@Vani1493&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;thank you so much...got it now...variable name changed...&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Expected such. You did not say how you read the data into SAS but I would suspect use of either Proc Import or a tool that calls that procedure. Proc Import will attempt to use the first row of values for variables. Your picture showed two rows with several under a spanning header. So likely you have a bunch of Var1, Var2 variables because the first row for many cells did not have any text. Also since the first "values" seen in most of those columns was what you are thinking of as headers that the values were all treated as text even if most of the column should be numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Spreadsheets are messy at best. Often it is better to save the file as CSV. Then there are more tools that will work with reading the file such as writing a data step that allows you to specify which row data actually starts on and what names you want for the variables.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 17:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849922#M37193</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-12-15T17:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849923#M37194</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437568"&gt;@Vani1493&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vani1493_0-1671121274882.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78592iFFF8A3A6334626F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vani1493_0-1671121274882.png" alt="Vani1493_0-1671121274882.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can anyone help how to do proc freq for the Mat variable from the above Excel..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data= dataset name;&lt;/P&gt;
&lt;P&gt;table Mat;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;Log showing Mat variable is not there in this dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That sheet is not designed to be used as data.&amp;nbsp; It has extraneous stuff ("Meternal Data") before the actual data table.&lt;/P&gt;
&lt;P&gt;If you cannot fix the sheet to look like data you might try telling PROC IMPORT to skip the first row by setting A2 is the upper left corner of the range.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import dbms=xlsx file='myfile.xlsx' out=want replace;
  range='$A2:';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Dec 2022 18:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849923#M37194</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-12-15T18:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849937#M37195</link>
      <description>&lt;P&gt;Thank you Tom for your solution...I will try whatever you suggest with range option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I am asking silly doubts here &lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;, but I am a new learner of SAS.&amp;nbsp; I am really happy that I am getting support here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-help/m-p/849937#M37195</guid>
      <dc:creator>Vani1493</dc:creator>
      <dc:date>2022-12-15T19:00:04Z</dc:date>
    </item>
  </channel>
</rss>

