<?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>TimArm Tracker</title>
    <link>https://communities.sas.com/kntur85557/tracker</link>
    <description>TimArm Tracker</description>
    <pubDate>Sun, 17 May 2026 03:50:00 GMT</pubDate>
    <dc:date>2026-05-17T03:50:00Z</dc:date>
    <item>
      <title>Re: How to read observations in multiple records conditionally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-observations-in-multiple-records-conditionally/m-p/214319#M39562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my experience, this kind of problem usually requires stripping out carriage returns using a preprocessing step.&lt;/P&gt;&lt;P&gt;I use the following macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro replace_crlf(inf,repchar='.');&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;infile "&amp;amp;inf." recfm=n sharebuffers;&lt;/P&gt;&lt;P&gt;file "&amp;amp;inf." recfm=n;&lt;/P&gt;&lt;P&gt;input a $char1.;&lt;/P&gt;&lt;P&gt;retain open 0;&lt;/P&gt;&lt;P&gt;** This statement toggles the open flag. ;&lt;/P&gt;&lt;P&gt;if a='"' then open=not open;&lt;/P&gt;&lt;P&gt;if a in ('0A'x,'0D'x) and open then put &amp;amp;repchar.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend replace_crlf;&lt;/P&gt;&lt;P&gt;%replace_crlf(filename.csv,repchar=' ');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will alter the file in place...so if you don't want to risk losing the original, take a copy of it first!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 10:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-observations-in-multiple-records-conditionally/m-p/214319#M39562</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2015-05-14T10:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linefeeds</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-linefeeds/m-p/134219#M36438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using&lt;/P&gt;&lt;P&gt;v1= TRANSLATE(v1,"",'0A'x);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function TRANWRD looks for white space to delimit words - so probably considers '0A'x as white space.&lt;/P&gt;&lt;P&gt;NOTE: the arguments to TRANSLATE need to be swapped around from TRANWRD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 15:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-linefeeds/m-p/134219#M36438</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2013-05-15T15:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Copy/move external file,doesn't work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134197#M295502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. Try this and check the values of rc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data rc;&lt;/P&gt;&lt;P&gt; rc=system("&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;xcopy &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt; rc=system("move&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt; rc=system("&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;copy &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\a.xls&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp\43430710\Test\test1&lt;/A&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you get something that works you can try it again in %sysExec, or keep the above with data _NULL_ instead of data rc (although it can be quite useful to have a work dataset where you can check the return codes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a drive mapping for &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/45844" style="color: #0e66ba; text-decoration: underline; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\\133.9.206.139\bdp &lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; then try using that instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 08:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-move-external-file-doesn-t-work/m-p/134197#M295502</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2013-05-15T08:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Removing space while resolving macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-space-while-resolving-macros/m-p/127448#M260318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice one Ksharp. I will use that in future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 12:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-space-while-resolving-macros/m-p/127448#M260318</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2013-05-02T12:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Removing space while resolving macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-space-while-resolving-macros/m-p/127444#M260314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello santhosh, I think this is a simple solution you could try...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;set temperv end=eof;&lt;/P&gt;&lt;P&gt;length t_str $100.;&lt;/P&gt;&lt;P&gt;t_str = cats('CPRNO',put(_n_,10.));&lt;/P&gt;&lt;P&gt;call symput(t_str,CPRNO);&lt;/P&gt;&lt;P&gt;if eof then&lt;/P&gt;&lt;P&gt;t_str = left(put(_n_,20.));&lt;/P&gt;&lt;P&gt;call symput('numrows',t_str);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%put _user_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 10:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-space-while-resolving-macros/m-p/127444#M260314</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2013-05-02T10:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Running SAS EG jobs in Windows from Unix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-SAS-EG-jobs-in-Windows-from-Unix/m-p/125815#M294254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On our unix server we have Samba installed so that we can access the same disk area from unix and Windows. Do you have samba installed - or is it something you can ask your Unix Administrator to install?&lt;/P&gt;&lt;P&gt;This means I can edit a file on Windows as X:\sharename\file.sas, and then include it from a job running on unix as /usr/data/sharename/file.sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 14:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-SAS-EG-jobs-in-Windows-from-Unix/m-p/125815#M294254</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2013-05-01T14:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone help me with my formatting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-with-my-formatting/m-p/126490#M260218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you were almost there. Try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data comb_rate;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set female_pr male_pr pulserate;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label rate_change='Pulse Rate Change'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BMI='Body Mass Index';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if gender='male' then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BMI=703*weight/(height*height);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if gender='female' then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BMI=695*weight/(height*height);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rate_change=rate_after-rate_before;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;proc print data=comb_rate;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;proc format;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value bmifmt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Low-25='Normal'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26-35 ='Low Risk'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 36-High='High Risk';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=comb_rate label;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FORMAT BMI bmifmt.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 11:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-help-me-with-my-formatting/m-p/126490#M260218</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2013-05-01T11:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add a certain number of days onto a date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-certain-number-of-days-onto-a-date/m-p/124455#M260029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would do it like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;&amp;nbsp; attrib fromdt length=8. format=DATE9.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; todt&amp;nbsp;&amp;nbsp; length=8. format=DATE9.&lt;BR /&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; fromdt = "03MAR2010"d;&lt;/P&gt;&lt;P&gt;&amp;nbsp; todt = intnx('DAY',fromdt,60);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 13:01:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-certain-number-of-days-onto-a-date/m-p/124455#M260029</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2013-04-30T13:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the max length of an observarion and assign it the max maxmium length ...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-calculate-the-max-length-of-an-observarion-and-assign-it/m-p/101126#M28382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ajuhack,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached 3 macros that you might like to try. The main macro is called %read_csv_data.sas&amp;nbsp; -&amp;nbsp; it calls the other 2 macros.&lt;/P&gt;&lt;P&gt;I have learned by experience not to trust proc import for the very reason that it uses guessingrows. If you are guessing, you will always run the risk of data truncation.&lt;/P&gt;&lt;P&gt;My solution is to perform 2 passes (in the way Cynthia suggested).&lt;/P&gt;&lt;P&gt;Actually, because of my environment, it also reads the top 100 lines first, before doing the full reads, to determine if lines are CRLF or LF terminated!&lt;/P&gt;&lt;P&gt;It searches the top 100 lines for a header record, in order to work out column names.&lt;/P&gt;&lt;P&gt;It searches for a delimiter, or you can specify it if you know it.&lt;/P&gt;&lt;P&gt;It reads all of the data into character variables - so you will need to convert numerics and dates afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my test file of 95,000 obs it takes about 1 minute to run on my AIX server.&lt;/P&gt;&lt;P&gt;My other test file of 410MB and over 10 million obs takes 8 or 9 minutes. SAS is good like this - the first full read of the text file takes 7.5 minutes, and the second read takes 40 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you find this useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 14:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-calculate-the-max-length-of-an-observarion-and-assign-it/m-p/101126#M28382</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-12-20T14:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: excel to SAS dataset in UNIX</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86016#M1127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also agree with SASKiwi; I cannot use proc import with Excel files on my AIX server.&lt;/P&gt;&lt;P&gt;If you are using a data step, you could try using the termstr=CRLF option on the infile statement - if your file was saved on a Windows platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SandorSzalma is correct that you can still use proc import on unix, as it can still be used to read text files (delimited).&lt;/P&gt;&lt;P&gt;HOWEVER, if you use proc import with a tab delimited file it only looks at the first 2 rows by default to guess variable lengths. You can change this by using the &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000312413.htm"&gt;GUESSINGROWS= option&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 14:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86016#M1127</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-12-06T14:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change Variable order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-Variable-order/m-p/91686#M19361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To try to answer your original question, have you tried this?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data out;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set ordered (obs=0);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you include the ordered dataset as the first in the set statement, but with obs=0, it should define the variables you want in the order you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 10:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-Variable-order/m-p/91686#M19361</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-12-06T10:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I combine 2 columns into one?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-I-combine-2-columns-into-one/m-p/79320#M22859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I suggested another approach...but I don't have time to time it &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 15:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-I-combine-2-columns-into-one/m-p/79320#M22859</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-11-27T15:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I combine 2 columns into one?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-I-combine-2-columns-into-one/m-p/79315#M22854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should run as quickly as Tom's SQL, I hope (although it is more verbose!):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data lastonly (drop=t_:);&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have (rename=(ColA=t_A ColB=t_B ColC=t_C));&lt;/P&gt;&lt;P&gt;&amp;nbsp; by Period;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length ColA ColB ColC 8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain ColA ColB ColC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if first.Period then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ColA = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ColB = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ColC = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ColA = max(ColA,t_A);&lt;/P&gt;&lt;P&gt;&amp;nbsp; ColB = max(ColB,t_B);&lt;/P&gt;&lt;P&gt;&amp;nbsp; ColC = max(ColC,t_C);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if last.Period then output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 13:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-I-combine-2-columns-into-one/m-p/79315#M22854</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-11-26T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: error in %include</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-in-include/m-p/77961#M16905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, if you want to reset the syserr value each time, change the %runquit macro to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro runquit;&lt;/P&gt;&lt;P&gt;%* Reset the syserr value;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;x=x;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend runquit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 10:17:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-in-include/m-p/77961#M16905</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-11-26T10:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help with the error on Array "ERROR: Array subscript out of range at line ~ column ~ . "</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-Help-with-the-error-on-Array-quot-ERROR-Array-subscript/m-p/132021#M26929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;min(7,income_dx)&amp;nbsp; -&amp;nbsp; that's an Astoundingly good suggestion. I like it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another alternative, though - use a format to map the value of income_dx to an array index.&lt;/P&gt;&lt;P&gt;With a format you could catch values for income_dx that are not in 1,2,3,4,5,6,9 and assign them to another array index for data "errors". A format would also let you convert the character income_dx to a number without creating another variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 09:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-Help-with-the-error-on-Array-quot-ERROR-Array-subscript/m-p/132021#M26929</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-11-22T09:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help with the error on Array "ERROR: Array subscript out of range at line ~ column ~ . "</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-Help-with-the-error-on-Array-quot-ERROR-Array-subscript/m-p/132017#M26925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your earlier post said the income_dx values were &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;1,2,3,4,5,6, and 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to do coding4(income_dx) = 1;, then that is going to put something in coding(9) at some point.&lt;/P&gt;&lt;P&gt;Have you got somewhere for sas to put it?&lt;/P&gt;&lt;P&gt;Go back to declaring your array as salary1-salary10 and there will be a variable to store for coding(9).&lt;/P&gt;&lt;P&gt;Then you also need to make sure that you are looking at all of the values when you are retrieving/initialising the values i.e. do k=1 to 10; NOT do k=1 to 7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 16:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-Help-with-the-error-on-Array-quot-ERROR-Array-subscript/m-p/132017#M26925</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-11-21T16:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help with the error on Array "ERROR: Array subscript out of range at line ~ column ~ . "</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-Help-with-the-error-on-Array-quot-ERROR-Array-subscript/m-p/132014#M26922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you also need do k=1 to 10; as well!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-Help-with-the-error-on-Array-quot-ERROR-Array-subscript/m-p/132014#M26922</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-11-21T15:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help with the error on Array "ERROR: Array subscript out of range at line ~ column ~ . "</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-Help-with-the-error-on-Array-quot-ERROR-Array-subscript/m-p/132012#M26920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;9 is bigger than the size of your array!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff; text-decoration: underline; color: #0000ff;"&gt;array coding4 {*} salary1-salary6 salary7;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff; text-decoration: underline; color: #0000ff;"&gt;array coding4 {10} salary1-salary6 salary7;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-Help-with-the-error-on-Array-quot-ERROR-Array-subscript/m-p/132012#M26920</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-11-21T15:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change column width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-column-width/m-p/131150#M26738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My advice is this: define the layout (I usually use the attrib statement) that you want in a separate file which you can then include before the set statement e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ds2;&lt;/P&gt;&lt;P&gt;%include programs(layout_ds2);&lt;/P&gt;&lt;P&gt; set ds1;&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ds3;&lt;/P&gt;&lt;P&gt;%include programs(layout_ds3);&lt;/P&gt;&lt;P&gt; set ds2 (rename=(dsvar=tmp_dsvar));&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt; dsvar = tmp_dsvar;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense? You can control drops and keeps in this way too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-column-width/m-p/131150#M26738</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-11-21T15:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help with the error on Array "ERROR: Array subscript out of range at line ~ column ~ . "</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-Help-with-the-error-on-Array-quot-ERROR-Array-subscript/m-p/132008#M26916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you need to check is: are any of the values of income_dx outside the size of the array i.e. &amp;lt;1 or &amp;gt;7 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-Help-with-the-error-on-Array-quot-ERROR-Array-subscript/m-p/132008#M26916</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-11-21T15:41:59Z</dc:date>
    </item>
  </channel>
</rss>

