<?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: Need Help Constructing Code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Constructing-Code/m-p/229706#M41589</link>
    <description>&lt;P&gt;Given your "newness", some of the responses you get may skip over questions that you really need to investigate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC FREQ will answer most of these questions.&amp;nbsp; Some will require a combination of PROC FORMAT and PROC FREQ which is easy for advanced users, but might require some study on your part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where do you begin?&amp;nbsp; I would suggest looking at your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you already have a SAS data set?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does each "submission" represent a single observation in the SAS data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would imagine that the answers are "yes" so far.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know the names of the variables in the SAS data set?&amp;nbsp; (If you haven't done so already, run PROC CONTENTS on the data set.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that, explore the data.&amp;nbsp; You will need to know, for example, whether "unknown" is represented by a blank value, or by "unk" or by "UNK" (or by some other value).&amp;nbsp; A simple PROC FREQ (on GENDER) would tell you that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to know how the birth date values are stored ... as one numeric variable, as one character variable, as three variables ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the definition of "non-alpha"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the definition of a "children's program"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All of this takes place before you begin to answer any of the questions that you originally posed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2015 13:59:41 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2015-10-13T13:59:41Z</dc:date>
    <item>
      <title>Need Help Constructing Code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Constructing-Code/m-p/229700#M41588</link>
      <description>&lt;P&gt;I have a small project constructing code to obtain data illustrated below: Are constructing Crosstabs the best method to illustrate these frequencies? Or using Proc Print? I'm relatively new to SAS and feel this project may be trivial to advanced users - Please no trolls - all input is welcome. Thank you SAS community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All counts and %s will be done by Facility and Facility/Program Type&lt;/P&gt;
&lt;P&gt;- Count submissions with the same DOB, name, sex&lt;/P&gt;
&lt;P&gt;- Count of Unknowns for assigned sex at birth&lt;/P&gt;
&lt;P&gt;- Count and % of submissions age &amp;gt; 90 or &amp;lt; 2.&lt;/P&gt;
&lt;P&gt;- Count and % of submissions with length of first name=2 or length of last name=2.&lt;/P&gt;
&lt;P&gt;- Count and % of submissions with first name=(unknown, un, unk, qq, zz, or format of alpha, “.”) or last name=(unknown, un, unk, qq, zz, or format of alpha, “.”) [Note: check other non-alpha characters allowed by the application.]&lt;/P&gt;
&lt;P&gt;-Count and % of submissions of questions with Unknown as a possible response by FUS (or Facility)&lt;/P&gt;
&lt;P&gt;-Count and % of submissions with unknown month or day of birth.&lt;/P&gt;
&lt;P&gt;- Count and % of submissions from children’s programs with age &amp;gt; 21. See list below. I may have listed a few that don’t have to do the PCS.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 13:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-Constructing-Code/m-p/229700#M41588</guid>
      <dc:creator>joeyyyyyg</dc:creator>
      <dc:date>2015-10-13T13:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Constructing Code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Constructing-Code/m-p/229706#M41589</link>
      <description>&lt;P&gt;Given your "newness", some of the responses you get may skip over questions that you really need to investigate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC FREQ will answer most of these questions.&amp;nbsp; Some will require a combination of PROC FORMAT and PROC FREQ which is easy for advanced users, but might require some study on your part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where do you begin?&amp;nbsp; I would suggest looking at your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you already have a SAS data set?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does each "submission" represent a single observation in the SAS data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would imagine that the answers are "yes" so far.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know the names of the variables in the SAS data set?&amp;nbsp; (If you haven't done so already, run PROC CONTENTS on the data set.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that, explore the data.&amp;nbsp; You will need to know, for example, whether "unknown" is represented by a blank value, or by "unk" or by "UNK" (or by some other value).&amp;nbsp; A simple PROC FREQ (on GENDER) would tell you that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to know how the birth date values are stored ... as one numeric variable, as one character variable, as three variables ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the definition of "non-alpha"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the definition of a "children's program"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All of this takes place before you begin to answer any of the questions that you originally posed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 13:59:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-Constructing-Code/m-p/229706#M41589</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-10-13T13:59:41Z</dc:date>
    </item>
  </channel>
</rss>

