<?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: proc sql length in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66502#M14432</link>
    <description>same as normal&lt;BR /&gt;
format the source, and that is what appears in the destination&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
select rate format= best20. &lt;BR /&gt;
into :v&lt;BR /&gt;
from test1;&lt;BR /&gt;
quit;&lt;BR /&gt;
 &lt;BR /&gt;
of course, if you want to remove leading/trailing blanks&lt;BR /&gt;
 &lt;BR /&gt;
%let v = &amp;amp;v ;

Message was edited by: Peter.C  trim lead/trailing blanks</description>
    <pubDate>Wed, 10 Mar 2010 17:19:30 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2010-03-10T17:19:30Z</dc:date>
    <item>
      <title>proc sql length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66498#M14428</link>
      <description>How do I specify the length of v?&lt;BR /&gt;
&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
	select rate &lt;BR /&gt;
	into :v&lt;BR /&gt;
	from test1;&lt;BR /&gt;
quit;</description>
      <pubDate>Wed, 10 Mar 2010 04:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66498#M14428</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-10T04:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66499#M14429</link>
      <description>hi, you can try the system option of MVARSIZE, see &lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/win-sysop-mvarsize.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/win-sysop-mvarsize.htm&lt;/A&gt;</description>
      <pubDate>Wed, 10 Mar 2010 10:00:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66499#M14429</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-10T10:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66500#M14430</link>
      <description>Most likely you will want to use a FORMAT= on the SELECT clause, specified after the SAS variable name -- this would be if you are attempting to truncate a CHARACTER variable or if you want to "format" the output of a NUMERIC variable.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 10 Mar 2010 12:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66500#M14430</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-10T12:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66501#M14431</link>
      <description>Simply as this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
select rate length=8&lt;BR /&gt;
into :v &lt;BR /&gt;
from test1;&lt;BR /&gt;
quit; &lt;BR /&gt;
[/pre]&lt;BR /&gt;
But I suspect that's not what you need.&lt;BR /&gt;
As Scott suggested, I'm guessing you want to format rate in some specific way.&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Wed, 10 Mar 2010 12:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66501#M14431</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2010-03-10T12:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66502#M14432</link>
      <description>same as normal&lt;BR /&gt;
format the source, and that is what appears in the destination&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
select rate format= best20. &lt;BR /&gt;
into :v&lt;BR /&gt;
from test1;&lt;BR /&gt;
quit;&lt;BR /&gt;
 &lt;BR /&gt;
of course, if you want to remove leading/trailing blanks&lt;BR /&gt;
 &lt;BR /&gt;
%let v = &amp;amp;v ;

Message was edited by: Peter.C  trim lead/trailing blanks</description>
      <pubDate>Wed, 10 Mar 2010 17:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66502#M14432</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-03-10T17:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66503#M14433</link>
      <description>This is what I want.&lt;BR /&gt;
I just used format=5.2 instead of best20.&lt;BR /&gt;
Thanks.</description>
      <pubDate>Wed, 10 Mar 2010 18:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-length/m-p/66503#M14433</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-10T18:56:33Z</dc:date>
    </item>
  </channel>
</rss>

