<?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: Help Running A Program in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-Running-A-Program/m-p/140500#M37560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Yes&lt;/P&gt;&lt;P&gt;2. No&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 21:08:34 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-11-12T21:08:34Z</dc:date>
    <item>
      <title>Help Running A Program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-Running-A-Program/m-p/140498#M37558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hi, I am new to the forum and have a simple request. I am a student taking a test on SAS and was given an assignment, however I do not have access to my PC and I am working with a Mac (no SAS access). I have two program that I need to run to check their accuracy and was wondering if anyone might be kind enough to help? If so, it would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of sum (line 5) should be 14:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt; repeat;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt; alp(&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;) a1-a3 (&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt; i=anyalpha(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;"&amp;amp;$#a987a"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;"07jan1960"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;dif=i-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;alp(dif)=alp(dif)**dif;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;sum + alp(dif);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt; i ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;STRONG style="background: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: 'Courier New', monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: arial, helvetica, sans-serif;"&gt;My second question is as to whether or not this is a valid procedure, specifically the MEAN, MEDIAN, MIN and MAX portions of the TABLE function in line 10 (I am trying to calculate the mean, median and interquartile range for the data set scores):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background: #ffffff; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt;PROC IMPORT DATAFILE = 'c:\MyComputer\Documents\demo_info.xls' OUT = scores DBMS = excel GETNAMES = yes; SHEET = hallo;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt;quarter = QTR(birth_date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt;IF LENGTH(gender) &amp;lt;= 5 THEN gender = Male;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt;IF LENGTH(gender) &amp;gt;= 5 THEN gender = Female;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt;PROC TABULATE DATA = scores;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt; CLASS gender quarter;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt; VAR score&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt; TABLE gender ALL, MEAN*score* (quarter ALL) MEDIAN*score* (quarter ALL) MIN*score* (quarter) MAX*score* (quarter);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt; TITLE 'Mean, Median and Inter Quartile Range of scores by Gender';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 21:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-Running-A-Program/m-p/140498#M37558</guid>
      <dc:creator>samcd</dc:creator>
      <dc:date>2013-11-12T21:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help Running A Program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-Running-A-Program/m-p/140499#M37559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to add that I am not looking for any help beyond yes/no answers, as this is for a school exam, and I am simply looking to replicate the resources I would have if I were operating on my own computer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 21:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-Running-A-Program/m-p/140499#M37559</guid>
      <dc:creator>samcd</dc:creator>
      <dc:date>2013-11-12T21:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help Running A Program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-Running-A-Program/m-p/140500#M37560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Yes&lt;/P&gt;&lt;P&gt;2. No&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 21:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-Running-A-Program/m-p/140500#M37560</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-11-12T21:08:34Z</dc:date>
    </item>
  </channel>
</rss>

