<?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>Murray_Court Tracker</title>
    <link>https://communities.sas.com/kntur85557/tracker</link>
    <description>Murray_Court Tracker</description>
    <pubDate>Mon, 11 May 2026 12:01:54 GMT</pubDate>
    <dc:date>2026-05-11T12:01:54Z</dc:date>
    <item>
      <title>Re: if/and/or Statements</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/if-and-or-Statements/m-p/152617#M40143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax is exactly as you described. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if code1=1 AND (ind_code in ("AG","FOOD") OR sic_code in (78,98,47) ) then reg = 1;&lt;/P&gt;&lt;P&gt;else reg=0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Murray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2014 01:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/if-and-or-Statements/m-p/152617#M40143</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2014-03-22T01:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trend function in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Trend-function-in-SAS/m-p/151666#M945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; A linear regression would give you the answer based on a linear trendline..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Proc reg data=have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model units = date;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This will give you gradient and intercept coefficients that you can apply to the date (in sas date form) to give you a linear estimate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This code and be emended to include polynomial trend-line fitting as shown to account for higher order relationships:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Proc reg data=have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model units = date date*date;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 10:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Trend-function-in-SAS/m-p/151666#M945</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2014-03-21T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Macro to update the values in the datastep automatically from an excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-a-Macro-to-update-the-values-in-the-datastep-automatically/m-p/151702#M29891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the excel sheet is in a standard format you can use a proc import step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; proc import&amp;nbsp; datafile="path\spreadsheet.xlsx" out=want dbms=csv replace;&lt;/P&gt;&lt;P&gt;getnames=yes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 09:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-a-Macro-to-update-the-values-in-the-datastep-automatically/m-p/151702#M29891</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2014-03-21T09:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Single observation per subject from multiple observation per subject</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Single-observation-per-subject-from-multiple-observation-per/m-p/149902#M262395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;summarize using sql. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select id, 1 as seq, &lt;/P&gt;&lt;P&gt;max(a) as a, /* or sum(a) as a, whichever appropriate */&lt;/P&gt;&lt;P&gt;max(b) as b,&lt;/P&gt;&lt;P&gt;max(c) as c&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;group by id, seq;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 09:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Single-observation-per-subject-from-multiple-observation-per/m-p/149902#M262395</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2014-03-20T09:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Macro Variable code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Iterative-Macro-Variable-code/m-p/148820#M29391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are missing an &amp;amp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l&lt;/P&gt;&lt;P&gt;ibname NACO 'sas/data/reference';&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro NACO (ext=);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Sql;&lt;/P&gt;&lt;P&gt;Create Table naco as select&lt;/P&gt;&lt;P&gt;Select count(*) from naco.NAco_&amp;amp;ext.;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Mend NACO;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%NACO (ext=201302);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 16:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Iterative-Macro-Variable-code/m-p/148820#M29391</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2014-03-19T16:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Does SAS have function to get "Skewness" directly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-have-function-to-get-quot-Skewness-quot-directly/m-p/145083#M28947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe proc Univariate gives Skewness statistics for a given variable. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 09:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-have-function-to-get-quot-Skewness-quot-directly/m-p/145083#M28947</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2014-03-15T09:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc freq - calculating percentages AFTER excluding certain counts</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-freq-calculating-percentages-AFTER-excluding-certain-counts/m-p/155423#M12136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL is your friend here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Pro sql;&lt;/P&gt;&lt;P&gt;create table want as select&lt;/P&gt;&lt;P&gt;age, sum(case when gender="M" then 1 else 0 end) as M,&amp;nbsp; sum(case when gender="F" then 1 else 0 end) as F&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;group by age&lt;/P&gt;&lt;P&gt;having (M ge 1 or F ge 1)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Apologies for possible syntax errors as I am at home. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 07:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-freq-calculating-percentages-AFTER-excluding-certain-counts/m-p/155423#M12136</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2014-01-29T07:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: CATS (X) not starting with 111</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CATS-X-not-starting-with-111/m-p/154164#M298616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If you want to select any record which does not begin with '111' then use the folling code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Data want;&lt;/P&gt;&lt;P&gt; set have;&lt;/P&gt;&lt;P&gt; y=put(a,8.);&lt;/P&gt;&lt;P&gt; z=substr(y,1,3);&lt;/P&gt;&lt;P&gt; if z="111" then delete;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 09:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CATS-X-not-starting-with-111/m-p/154164#M298616</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2014-01-28T09:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS dataset loading into sql server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-loading-into-sql-server/m-p/153444#M262640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you have an asymmetrical network conntection that means that you can download data much faster than you can upload it? This is very common. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 16:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-dataset-loading-into-sql-server/m-p/153444#M262640</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2014-01-27T16:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data step to flag data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wrong-data-step-to-flag-data/m-p/153361#M40327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; It looks like you are only actually merging on proc1 from your example.&lt;/P&gt;&lt;P&gt; SQL should do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want a select a.*, b.proc1 as tbl1_proc1, b.proc2 as tbl1_proc2&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;have1 as b&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt; have2 as a&lt;/P&gt;&lt;P&gt;on&lt;/P&gt;&lt;P&gt;a.proc1=b.proc1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 16:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wrong-data-step-to-flag-data/m-p/153361#M40327</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2014-01-27T16:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to make imported SAS variable name conform to convention</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-imported-SAS-variable-name-conform-to-convention/m-p/151037#M262475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its very messy, but here is what I would try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Proc import with obs = 1 without retrieving the names, making a small dataset with just the names. &lt;/P&gt;&lt;P&gt;2. Act upon the dataset with a macro that inspects each character of each title individually and switches it if it doesn't conform (regular expressions would be go for this)&lt;/P&gt;&lt;P&gt;3. Select our names into a macro variable using proc sql&lt;/P&gt;&lt;P&gt;4. proc import with startobs = 2 to pull just the data from the file. &lt;/P&gt;&lt;P&gt;5. use a small macro that renames the automatically generated names with our formatted names stored in our macro variable from step 3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Anyone have any better ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 20:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-imported-SAS-variable-name-conform-to-convention/m-p/151037#M262475</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2014-01-23T20:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting rows in a final dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Deleting-rows-in-a-final-dataset/m-p/123600#M33968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The delete statement can be used conditionally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if var5="" /*null value for character variable */&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;var6=. /*null value for numeric variable */&lt;/P&gt;&lt;P&gt;then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 08:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Deleting-rows-in-a-final-dataset/m-p/123600#M33968</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2013-08-28T08:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-transpose/m-p/120529#M33228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, solution below, I saw no need to transpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; x1set;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; mydata;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; x2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; x2set;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; mydata;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; x1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; newdata;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; x1set x2set;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 12:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-transpose/m-p/120529#M33228</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2013-08-23T12:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for significant differences of time series</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Testing-for-significant-differences-of-time-series/m-p/120377#M6313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; It looks like Analysis of Variance is your solution here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The assumptions made about your data must be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; - Observations are independent (has you data been collected properly)&lt;/P&gt;&lt;P&gt; - Errors are normally distributed&lt;/P&gt;&lt;P&gt; - Both groups have equal response variences&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You have given a very small sample; the following program tells me through a homogeneity of variences test that the differences in variences between the groups are within standard statistical parameters (only just).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; low high;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;datalines&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; background: #ffffc0; color: black; font-family: 'Courier New';"&gt;0.1&amp;nbsp; 1.1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; background: #ffffc0; color: black; font-family: 'Courier New';"&gt;0.5&amp;nbsp; 0.4&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; background: #ffffc0; color: black; font-family: 'Courier New';"&gt;0.4&amp;nbsp; 1.4&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; background: #ffffc0; color: black; font-family: 'Courier New';"&gt;0.6&amp;nbsp; 0.6&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; background: #ffffc0; color: black; font-family: 'Courier New';"&gt;0.1&amp;nbsp; 0.2&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; background: #ffffc0; color: black; font-family: 'Courier New';"&gt;0.5&amp;nbsp; 0.2&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; background: #ffffc0; color: black; font-family: 'Courier New';"&gt;0.6&amp;nbsp; 0.8&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; temp_1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;team=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; temp (keep=low rename=(low=score));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; temp_2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;team=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; temp(keep=high rename=(high=score));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; temp_1 temp_2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;glm&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;=temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; team;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; score=team;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;means&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; team / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;hovtest&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With such a small sample size it is very hard to say wether the errors are normally distributed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Having done our best to verify the assumptions (if you have more data you will be able to do this properly, just run a histrogram of the differenced between the mean and the observations for each group and verify that it looks like a bell curve), we can now proceed with an analysis of varience test, which is also included in the output of the GLM procedure of the abocve program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The differences in varience yeild an F-statistic (strength and consistency of difference between means) of 2.02. The chances of this happening randomly on the assumption that there was no difference between the groups is given to be around 18.1%, this is above the common statistical threshold of 5%, implying that we cannot conclude that the two groups are different based on our observations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Adding more observations to our data help us to determine with greater accuracy what is really the case here, as generally speaking when sample sizes are below 30 most statistical tests will be inconclusive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; -Murray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 08:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Testing-for-significant-differences-of-time-series/m-p/120377#M6313</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2013-08-23T08:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aggregating-rows/m-p/119028#M32822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Ok, then use this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select _NAME_, &lt;/P&gt;&lt;P&gt;sum(col1) as col1tot,&lt;/P&gt;&lt;P&gt;sum(col2) as col2tot,&lt;/P&gt;&lt;P&gt;sum(col3) as col3tot&lt;/P&gt;&lt;P&gt;from Aero_Final_Trans&lt;/P&gt;&lt;P&gt;group by _NAME_;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I suspect that it will not group by _NAME_ properly, as you have changed the format to display the month only but not the underlying value. If it gives you far too many monthly totals then you should use the PUT function as opposed to the INPUT one in your initial stage, this will give you a character variable and not just the facade of one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Aero_Final_Trans;&lt;/P&gt;&lt;P&gt;set Aero_Final_Trans (rename=(_NAME_= TEMP));&lt;/P&gt;&lt;P&gt;_NAME_= put(TEMP,MONYY5.);&lt;/P&gt;&lt;P&gt;Format _NAME_ MONYY5.;&lt;/P&gt;&lt;P&gt;DROP temp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 12:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aggregating-rows/m-p/119028#M32822</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2013-08-22T12:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aggregating-rows/m-p/119026#M32820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you are trying to group by month, when the month name is only the format, and the underlying date values can still be distinct within each month. This will make aggregation difficult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean by 'group them by NAME', are you trying to sum COL1 - COL3 and then sum again by Name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so then try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;Proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;create&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; want &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; _NAME_,&amp;nbsp; sum(col1 + col2 + col3) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; total&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; Aero_Final_Trans&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;group &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; _NAME_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 11:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aggregating-rows/m-p/119026#M32820</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2013-08-22T11:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data management question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-management-question/m-p/118781#M259553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt; This should work:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data temp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;input Group ID Var;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 222&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 333&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 333&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 222&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 222&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 333&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sort data=temp(keep=group id) out=temp2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;by group ID;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data want;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set temp2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set temp(keep=Var);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 07:36:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-management-question/m-p/118781#M259553</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2013-08-22T07:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: replace missing value with mean</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-missing-value-with-mean/m-p/118831#M24481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Works well with this dataset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;input thing;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;101&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;103&lt;/P&gt;&lt;P&gt;104&lt;/P&gt;&lt;P&gt;105&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you give the log or the dataset you tried to use it with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 07:30:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-missing-value-with-mean/m-p/118831#M24481</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2013-08-22T07:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning values for postal codes</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assigning-values-for-postal-codes/m-p/118713#M32750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some conditional logic should help here, with the use of the substring function.&lt;/P&gt;&lt;P&gt;I don't have SAS o my home computer so I havnt been able to check for errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* define lists of numbers and letters, although I suspect SAS may have a shortcut for this. */&lt;/P&gt;&lt;P&gt;%let nums = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "0");&lt;/P&gt;&lt;P&gt;%let letters = ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;upcase(substr(postal_code,1,1)). = "T"&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;substr(postal_code,2,1) in &amp;amp;nums.&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;upcase(substr(postal_code,3,1)) in &amp;amp;letters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;substr(postal_code,4,1) = " "&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;substr(postal_code,5,1) in &amp;amp;nums.&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;upcase(substr(postal_code,6,1)) in &amp;amp;letters.&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;substr(postal_code,7,1) in &amp;amp;nums.&lt;/P&gt;&lt;P&gt;then &lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 15px; background-color: #ffffff;"&gt;validation = "correct&lt;/SPAN&gt;";&lt;/P&gt;&lt;P&gt;/*if the mength of your field is more than 7 characters you may want to check if the remaining ones are blank,&lt;/P&gt;&lt;P&gt;in your example the field post_code has 7 characters so no check needed */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else if&lt;/P&gt;&lt;P&gt;upcase(substr(postal_code,1,1)) in &amp;amp;letters&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;substr(postal_code,2,1) in &amp;amp;nums.&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;upcase(substr(postal_code,3,1)) in &amp;amp;letters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;substr(postal_code,4,1) = " "&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;substr(postal_code,5,1) in &amp;amp;nums.&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;upcase(substr(postal_code,6,1)) in &amp;amp;letters.&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;substr(postal_code,7,1) in &amp;amp;nums.&lt;/P&gt;&lt;P&gt;then &lt;SPAN style="color: #008000; font-family: 'Courier New'; font-size: 15px; background-color: #ffffff;"&gt;validation = "wrong&amp;nbsp; &lt;/SPAN&gt;"; /*extra spaces needed to avoid truncation */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else validation="strange";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 06:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assigning-values-for-postal-codes/m-p/118713#M32750</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2013-08-22T06:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding extra data to existing dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-extra-data-to-existing-dataset/m-p/117311#M32363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; PROC APPEND is your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc append base=have;&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; data=extra;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply put all of your additional data into a new dataset with the same structures and field names. Use the FORCE option to add observations with new variables .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 14:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-extra-data-to-existing-dataset/m-p/117311#M32363</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2013-08-21T14:17:01Z</dc:date>
    </item>
  </channel>
</rss>

