<?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: How does SAS determine crosstab frequencies? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-determine-crosstab-frequencies/m-p/974095#M377795</link>
    <description>&lt;P&gt;But how does it know how to access those datasets that have both the values in them? I have not specified paths for them anywhere. Also what if there did not exist a data set in that same file path that has these values for both? How would SAS determine the values in that case?&lt;BR /&gt;&lt;BR /&gt;Also for the freq disbns for the Gender and JObcode I specified the file path to those data sets . The code is as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASsusrik_0-1756943621563.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109607i6792A90C2AD0671A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASsusrik_0-1756943621563.png" alt="SASsusrik_0-1756943621563.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for you answer!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Sep 2025 23:55:08 GMT</pubDate>
    <dc:creator>SASsusrik</dc:creator>
    <dc:date>2025-09-03T23:55:08Z</dc:date>
    <item>
      <title>How does SAS determine crosstab frequencies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-determine-crosstab-frequencies/m-p/974092#M377793</link>
      <description>&lt;P&gt;Hello I am currently learning SAS and working on a problem as follows:&lt;BR /&gt;Below are the Gender and JObcode freq distributions:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASsusrik_0-1756940452098.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109605iE19C0DA5167127BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASsusrik_0-1756940452098.png" alt="SASsusrik_0-1756940452098.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I generated a freq count(crosstab) of gender by jobcode and got this table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASsusrik_1-1756940507529.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109606i876B1C13597388DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASsusrik_1-1756940507529.png" alt="SASsusrik_1-1756940507529.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I get what I see, but I am wondering how SAS determines the numbers from the above two tables. I mean the gender table is not having any job codes and the job codes table is not having any gender references, so how does SAS determine say for eg., that there are 8 F MECH02 employees? TIA!!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 23:04:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-determine-crosstab-frequencies/m-p/974092#M377793</guid>
      <dc:creator>SASsusrik</dc:creator>
      <dc:date>2025-09-03T23:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS determine crosstab frequencies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-determine-crosstab-frequencies/m-p/974093#M377794</link>
      <description>&lt;P&gt;It didn't.&amp;nbsp; It created it from the actual dataset where the observations have values for both variables so you can count how many observations had GENDER=F and JOBCODE=MECH02.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that it created the first two REPORT the same way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to avoid using the term "table" which has become overloaded with meanings.&amp;nbsp; Some people use it to refer to datasets instead of the original meaning of a tabular report like the ones you showed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 23:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-determine-crosstab-frequencies/m-p/974093#M377794</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-09-03T23:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS determine crosstab frequencies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-determine-crosstab-frequencies/m-p/974095#M377795</link>
      <description>&lt;P&gt;But how does it know how to access those datasets that have both the values in them? I have not specified paths for them anywhere. Also what if there did not exist a data set in that same file path that has these values for both? How would SAS determine the values in that case?&lt;BR /&gt;&lt;BR /&gt;Also for the freq disbns for the Gender and JObcode I specified the file path to those data sets . The code is as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASsusrik_0-1756943621563.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109607i6792A90C2AD0671A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASsusrik_0-1756943621563.png" alt="SASsusrik_0-1756943621563.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for you answer!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 23:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-determine-crosstab-frequencies/m-p/974095#M377795</guid>
      <dc:creator>SASsusrik</dc:creator>
      <dc:date>2025-09-03T23:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS determine crosstab frequencies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-determine-crosstab-frequencies/m-p/974096#M377796</link>
      <description>&lt;P&gt;You told it which dataset to use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data=ia.mechanics&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The first part is the LIBREF.&amp;nbsp; Something that ran before your code created the libref named IA that points to the location where SAS could find a dataset name MECHANICS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To see what the data looks like try running PROC PRINT (since you only have 34 observations).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=ia.mechanics;
  var gender jobcode;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Sep 2025 00:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-determine-crosstab-frequencies/m-p/974096#M377796</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-09-04T00:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS determine crosstab frequencies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-determine-crosstab-frequencies/m-p/974097#M377797</link>
      <description>&lt;P&gt;Thanks Tom, dumb me, I saw only the partial data in the mechanics dataset. TYSM!!&lt;span class="lia-unicode-emoji" title=":direct_hit:"&gt;🎯&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 00:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-determine-crosstab-frequencies/m-p/974097#M377797</guid>
      <dc:creator>SASsusrik</dc:creator>
      <dc:date>2025-09-04T00:56:14Z</dc:date>
    </item>
  </channel>
</rss>

