<?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>TomTom Tracker</title>
    <link>https://communities.sas.com/kntur85557/tracker</link>
    <description>TomTom Tracker</description>
    <pubDate>Tue, 26 May 2026 05:41:03 GMT</pubDate>
    <dc:date>2026-05-26T05:41:03Z</dc:date>
    <item>
      <title>Re: How to modify a stored fitted model before using if for scoring</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-a-stored-fitted-model-before-using-if-for-scoring/m-p/152095#M7985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which values to use for the calculations of x_mean was also giving me a bit of a headache. Thanks for your thoughts, very useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks also for the datastep solution to my problem. It's not that easy, I think, that's why I wondered whether I can fiddle with a model in the item-store. Anyway, it looks like nobody got an answer to my question (or the experts are too busy) so I'll have a try at your datastep solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 00:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-a-stored-fitted-model-before-using-if-for-scoring/m-p/152095#M7985</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2013-11-26T00:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: simulatiom data with sas/iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulatiom-data-with-sas-iml/m-p/154895#M1423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Has eps&lt;/EM&gt; been set to a value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be helpful to look at the output in the log file directly following the line starting with ERROR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 08:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulatiom-data-with-sas-iml/m-p/154895#M1423</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2013-11-25T08:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify a stored fitted model before using if for scoring</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-a-stored-fitted-model-before-using-if-for-scoring/m-p/152093#M7983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, what intend to do is actually more like &lt;EM&gt;adding 1 to each variable&lt;/EM&gt;, however, I thought it would be neat to do this via the stored model and this got me generally interested in whether I can modify these item-store objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I essentially want to do what Joyce et al did in in this paper &lt;A href="http://www.ncbi.nlm.nih.gov/pubmed/12407470"&gt;http://www.ncbi.nlm.nih.gov/pubmed/12407470&lt;/A&gt;&lt;/P&gt;&lt;P&gt;They calculate adjusted mortality rates.Their correction is done by subtracting the observed value of a confounder from the mean value of this confounder in the dataset and adding this term to the observed outcome (mortality rate). So for one independent variable the adjusted rate is given by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y_adj = y_obs + b (x_mean - x_obs)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Nov 2013 08:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-a-stored-fitted-model-before-using-if-for-scoring/m-p/152093#M7983</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2013-11-23T08:31:20Z</dc:date>
    </item>
    <item>
      <title>How to modify a stored fitted model before using if for scoring</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-a-stored-fitted-model-before-using-if-for-scoring/m-p/152091#M7981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following problem:&lt;/P&gt;&lt;P&gt;I fitted a model using &lt;EM&gt;proc genmod.&lt;/EM&gt; I stored this model in the item-store using the STORE statement and I now intend to use this model to score a different dataset using &lt;EM&gt;proc plm&lt;/EM&gt;. However, I would like to modify the stored model before using it for scoring. Is it possible to do this? My modification is something like (a bit more complicated actually): add 1 to each parameter.&amp;nbsp; Naively I tried to access the stored model in a data step which doesn't seem to be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 16:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-a-stored-fitted-model-before-using-if-for-scoring/m-p/152091#M7981</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2013-11-21T16:25:08Z</dc:date>
    </item>
    <item>
      <title>Generating numbers with given stepsize and range</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Generating-numbers-with-given-stepsize-and-range/m-p/38800#M185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC IML;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = DO(2,45,4);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINT i;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the questions you are asking on the SAS/IML forum are rather basic. May I suggest that you buy (or borrow) Rick's book to properly learn IML from scratch?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 16:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Generating-numbers-with-given-stepsize-and-range/m-p/38800#M185</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2012-01-26T16:15:57Z</dc:date>
    </item>
    <item>
      <title>The simple statistical functions in SAS/IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/The-simple-statistical-functions-in-SAS-IML/m-p/32495#M159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that the STD function has only been added to IML in SAS v9.3, you are using an earlier version. Therefore you are calling the SAS/base function STD which has different arguments. Here is its documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1fani7wj5h6ihn1j1kijj17ylpq.htm"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1fani7wj5h6ihn1j1kijj17ylpq.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same problem with the VAR function although this function has been added at some point earlier. I am using SAS v9.23 and for me VAR is available in IML and STD isn't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 00:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/The-simple-statistical-functions-in-SAS-IML/m-p/32495#M159</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2012-01-19T00:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multivariate Normal Tail probabilities</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multivariate-Normal-Tail-probabilities/m-p/26953#M125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. I was aware of the Genz &amp;amp; Bretz modules but hoped that there was a (hidden) build-in function that I missed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 21:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multivariate-Normal-Tail-probabilities/m-p/26953#M125</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2012-01-10T21:01:52Z</dc:date>
    </item>
    <item>
      <title>Multivariate Normal Tail probabilities</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multivariate-Normal-Tail-probabilities/m-p/26951#M123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering whether there is a SAS/IML function for obtaining tail probabilities of a multivariate Normal RV? Rick has blogged extensively about sampling from a MVN (thanks Rick!)&amp;nbsp; but I can’t find anything about tail probabilities.In essence I am looking for what this package provides in R:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cran.r-project.org/web/packages/mnormt/mnormt.pdf"&gt;http://cran.r-project.org/web/packages/mnormt/mnormt.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 16:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multivariate-Normal-Tail-probabilities/m-p/26951#M123</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2012-01-10T16:20:02Z</dc:date>
    </item>
    <item>
      <title>exponential function</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/exponential-function/m-p/37455#M173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;telescopic wrote:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;By the way, in IML, can we assign a value as scalar&amp;nbsp; instead to a (1x1) matrix?&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1x1 matrices are scalars&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/imlug/64248/HTML/default/viewer.htm#imlug_languagechap_sect001.htm"&gt;http://support.sas.com/documentation/cdl/en/imlug/64248/HTML/default/viewer.htm#imlug_languagechap_sect001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main problem with your programme above is that in your likelihood module the result of the calculation of EXP(194481) is too big for the computer to handle. I think you also want to pass rows of &lt;EM&gt;p&lt;/EM&gt; as arguments to LogLik and not the whole matrix. I suppose you have seen Rick's recent blog post. If not, have a look at what he did:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2011/10/12/maximum-likelihood-estimation-in-sasiml/"&gt;http://blogs.sas.com/content/iml/2011/10/12/maximum-likelihood-estimation-in-sasiml/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 14:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/exponential-function/m-p/37455#M173</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2011-10-29T14:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: windows 7 pipe problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/windows-7-pipe-problem/m-p/33661#M6593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for pointing me to the usage note. Pinning SAS to the task bar resolves the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 11:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/windows-7-pipe-problem/m-p/33661#M6593</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2011-10-25T11:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: windows 7 pipe problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/windows-7-pipe-problem/m-p/33659#M6591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your reply. Unfortunately your code doesn’t work. First, &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 9pt;"&gt;%put&lt;/SPAN&gt; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 9pt;"&gt;%sysget&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 9pt;"&gt;(hostname); &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: arial,helvetica,sans-serif;"&gt;gives a warning on XP as well as on Win7:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;WARNING: The argument to macro function %SYSGET is not defined as a system variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white;"&gt;The datastep afterwards works on XP but not on Win 7. The error message is similar to the one in my original post:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background-color: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;NOTE:The infile ENVS is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unnamed Pipe Access Device,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROCESS=set,RECFM=V,LRECL=10000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;Stderr output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;The handle is invalid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;The handle is invalid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;(More handle invalid lines)&lt;BR /&gt;The handle is invalid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;NOTE: 0 records were read from the infile ENVS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;NOTE: The data set WORK.EVARS has 0 observations and 3 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.14 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; system cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I should mention that, unlike XP, the Win 7 installation is 64 bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 10:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/windows-7-pipe-problem/m-p/33659#M6591</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2011-10-25T10:45:23Z</dc:date>
    </item>
    <item>
      <title>windows 7 pipe problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/windows-7-pipe-problem/m-p/33658#M6590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because I wasn't aware of this macro variable :smileysilly: Using syshostname works, thanks! I still would like to find out what is wrong with my original code, though. Maybe my response to Peter.C gives a lead...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 10:34:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/windows-7-pipe-problem/m-p/33658#M6590</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2011-10-25T10:34:34Z</dc:date>
    </item>
    <item>
      <title>windows 7 pipe problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/windows-7-pipe-problem/m-p/33657#M6589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It gives me the hostname, assuming that what you call 'command prompt' is what I called 'windows console' (cmd.exe).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 10:30:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/windows-7-pipe-problem/m-p/33657#M6589</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2011-10-25T10:30:57Z</dc:date>
    </item>
    <item>
      <title>windows 7 pipe problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/windows-7-pipe-problem/m-p/33653#M6585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with one of my macros using SAS 9.22 on Windows 7. I amrunning my programmes on different computers in different directories. ThereforeI wrote a little macro which checks the computer’s hostname and according tothis name assigns my library to a certain directory. I do the following to putthe hostname into a macro variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;FILENAME &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;h &lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;PIPE&lt;/SPAN&gt; &lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;'hostname'&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;DATA&lt;/STRONG&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;_NULL_&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;INFILE &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;h; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;INPUT&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;PUT&lt;/SPAN&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; _infile_&lt;/SPAN&gt; ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;CALL &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;SYMPUT(&lt;/SPAN&gt;&lt;SPAN style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;'current_com'&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;,TRIM(LEFT(_infile_))); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: black; background-color: white; font-size: 10pt;"&gt;This works with Win XP and &lt;/SPAN&gt;SAS 9.22. Here is what thelog says:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;NOTE:The infile H is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unnamed Pipe Access Device,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROCESS=hostname,RECFM=V,LRECL=256&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;myhostname&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;NOTE: 1record was read from the infile H.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 10.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 10.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;NOTE:DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.09 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; system cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However, on Windows 7 I obtain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;NOTE:The infile H is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unnamed Pipe Access Device,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROCESS=hostname,RECFM=V,LRECL=256&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;NOTE: 0records were read from the infile H.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;NOTE:DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0pt 0pt 0pt 28.5pt;"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.31 seconds&lt;BR /&gt; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.04 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So apparently the hostname couldn’t be read. If I type ‘hostname’in the windows console I get the hostname as expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I apologise if this isn't the correct forum section. It seems most appropriate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 20:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/windows-7-pipe-problem/m-p/33653#M6585</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2011-10-24T20:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with time() function</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Problem-with-time-function/m-p/22397#M91</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, I missed the second part of Rick's answer. Sorry about that. Actually, I was replying to the notification email I received for his post and the reply in there looks a bit different (i.e. doesn't contain the datetime bit). I'll try the datetime() function - thanks! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer the question why the computation takes so long: I am running what I would call a fairly complex Monte-Carlo simulation. By the way, thanks for implementing the submit statement allowing me to call procedures from within IML. I am using it for these simulations and it makes my life so much easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 20:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Problem-with-time-function/m-p/22397#M91</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2011-10-03T20:12:00Z</dc:date>
    </item>
    <item>
      <title>Problem with time() function</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Problem-with-time-function/m-p/22395#M89</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick, thanks for your swift reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saying that i should put &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t0 = time(); /* overwrite t0; we don't need the original value */&lt;/P&gt;&lt;P&gt;immediately before the step 2 computation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest, I fail to see the difference between your t2 and mine.&lt;/P&gt;&lt;P&gt;In my code t2 = (time() - t0) is an elapsed time, like in yours, but it is the time from start to finish of the whole programme. From this I am &lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;subtracting&lt;/SPAN&gt; the elapsed time for the first step. Can I not use elapsed times in calculations? I'd greatly appreciate it if you could elaborate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 12:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Problem-with-time-function/m-p/22395#M89</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2011-10-03T12:40:46Z</dc:date>
    </item>
    <item>
      <title>Problem with time() function</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Problem-with-time-function/m-p/22393#M87</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with the time() function. My code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IML;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t0 = time();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Step 1 computation */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1 = time() - t0; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Step 2 computation */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t2 = (time() - t0)-t1; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg = "Step 1: _x seconds&amp;nbsp;&amp;nbsp; Step 2: _y seconds";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sX = putn(t1, "BEST5.");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sY = putn(t2, "BESTD9.");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg = tranwrd(msg, "_x", sX);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg = tranwrd(msg, "_y", sY);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINT msg[label="Time evaluation"];&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The time for step 1 is shown correctly but step 2 usually is not. I get all sorts of numbers for t2 including negative ones.&amp;nbsp; I suppose the problem is that step 2 takes considerably longer than step 1 (20 to 30 hours for step 2, &amp;lt;1 hour for step 1). Is the time function unable to handle such long timeframes or could it be that I just don’t get the format in the putn function right? I tried several BESTxx.x&lt;SPAN style="color: #000000; background-color: white; font-size: 10pt;"&gt; values but none seemed to work. The code works fine for 2 quick computations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;Many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 12:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Problem-with-time-function/m-p/22393#M87</guid>
      <dc:creator>TomTom</dc:creator>
      <dc:date>2011-10-03T12:07:37Z</dc:date>
    </item>
  </channel>
</rss>

