<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: In-Memory Statistics: How to control temporary variable length in SAS Academy for Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/541229#M273</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; What the instructors said was that:&lt;/P&gt;
&lt;P&gt;"&lt;STRONG&gt;There is no way to control the length of a temp variable in IMSTAT, that I know of. You have to use different logic to work your way into it. I would advise them to reverse the logic. The longer variable value is now assigned first and should fix the issue.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tempexpress="if number NE 'big' then bigsmall='smaller ';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;else bigsmall='bigger';";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; By putting the larger value first, the length will be set based on the length of the first string in the assignment for the BIGSMALL variable.&lt;/STRONG&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 21:25:17 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-03-07T21:25:17Z</dc:date>
    <item>
      <title>In-Memory Statistics: How to control temporary variable length</title>
      <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/540482#M268</link>
      <description>&lt;P&gt;I was computing a temp variable with proc imstat:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="page"&gt;&lt;DIV class="section"&gt;&lt;DIV class="layoutArea"&gt;&lt;DIV class="column"&gt;&lt;P&gt;&lt;SPAN&gt;crosstab re_subj*bigsmall/ tempnames=bigsmall tempexpress="if number='big' then bigsmall='bigger '; &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="layoutArea"&gt;&lt;DIV class="column"&gt;&lt;PRE&gt;&lt;SPAN&gt;else bigsmall='smaller';";&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="layoutArea"&gt;&lt;DIV class="column"&gt;&lt;P&gt;&lt;SPAN&gt;run; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The values for 'smaller' is 1-character shorter, i.e. 'smalle' instead. &amp;nbsp;Therefore, I assume it is a variable length problem, like in data step. &amp;nbsp;Is there any way to fix the issue in&amp;nbsp;proc imstat.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/540482#M268</guid>
      <dc:creator>jason4sas</dc:creator>
      <dc:date>2019-03-05T15:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory Statistics: How to control temporary variable length</title>
      <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/540777#M269</link>
      <description>Hi:&lt;BR /&gt;  If you are using one of the classes in the SAS Academy for Data Science, can you explain what module you're in, what course and lesson you're working one and the demo or exercise where you encountered issues?&lt;BR /&gt;&lt;BR /&gt;  That will provide the Data Science instructors with the information they need.&lt;BR /&gt;Thanks, in advance,&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 06 Mar 2019 14:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/540777#M269</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-03-06T14:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory Statistics: How to control temporary variable length</title>
      <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/540815#M270</link>
      <description>&lt;P&gt;Sure. &amp;nbsp;Here is the info:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;module: &amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT size="2"&gt;Module 2: Big Data Programming and Loading&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;course: &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Getting Started with SAS® In-Memory Statistics&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lesson: &amp;nbsp; Chapter 3 Exercise 2-b&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 16:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/540815#M270</guid>
      <dc:creator>jason4sas</dc:creator>
      <dc:date>2019-03-06T16:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory Statistics: How to control temporary variable length</title>
      <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/540860#M271</link>
      <description>Thanks for the information, we can ask the instructors who teach the course what they recommend. Stay tuned!&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 06 Mar 2019 18:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/540860#M271</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-03-06T18:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory Statistics: How to control temporary variable length</title>
      <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/541229#M273</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; What the instructors said was that:&lt;/P&gt;
&lt;P&gt;"&lt;STRONG&gt;There is no way to control the length of a temp variable in IMSTAT, that I know of. You have to use different logic to work your way into it. I would advise them to reverse the logic. The longer variable value is now assigned first and should fix the issue.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tempexpress="if number NE 'big' then bigsmall='smaller ';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;else bigsmall='bigger';";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; By putting the larger value first, the length will be set based on the length of the first string in the assignment for the BIGSMALL variable.&lt;/STRONG&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 21:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/541229#M273</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-03-07T21:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory Statistics: How to control temporary variable length</title>
      <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/541247#M274</link>
      <description>&lt;P&gt;Many thanks for the solution. &amp;nbsp;Alternatively, can blank spaces be used to pack it up like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tempexpress="if number NE 'big' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;then bigsmall=&lt;FONT face="simsun,hei" color="#FF0000"&gt;'bigger &amp;nbsp;'&lt;/FONT&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;else bigsmall='smaller';";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is an empty space after the text in 'bigger'. &amp;nbsp;it should also work, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 22:02:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/541247#M274</guid>
      <dc:creator>jason4sas</dc:creator>
      <dc:date>2019-03-07T22:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory Statistics: How to control temporary variable length</title>
      <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/541269#M275</link>
      <description>Hi, Jason:&lt;BR /&gt;  I would guess it should work that way. However, I do not know whether IMSTAT trims trailing blanks. You'll just have to test it to see.&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 07 Mar 2019 22:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/In-Memory-Statistics-How-to-control-temporary-variable-length/m-p/541269#M275</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-03-07T22:49:37Z</dc:date>
    </item>
  </channel>
</rss>

