<?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: create new variable using the proc sql (specify length) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-new-variable-using-the-proc-sql-specify-length/m-p/281987#M57249</link>
    <description>&lt;P&gt;Explicitly specify the length.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"" as test02 length=8.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 04 Jul 2016 12:59:12 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-07-04T12:59:12Z</dc:date>
    <item>
      <title>create new variable using the proc sql (specify length)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-new-variable-using-the-proc-sql-specify-length/m-p/281982#M57245</link>
      <description>&lt;P&gt;Dear expert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating an empty data set that shoul dbe afterwards filled using the proc sql as it follows:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql; create table abcs&amp;nbsp;as&lt;BR /&gt;select t1.*, t2.*,&lt;BR /&gt;&lt;STRONG&gt;0 as test01,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"" as test02&lt;/STRONG&gt;&lt;BR /&gt;from DC.input_analysis t1 left outer join DC.stacked t2 on t1.variable_name=t2.Variable ;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not have any issue with the variable test01 but I have afterwards issues with the length of the variable test02. How can enhance the script above spcifying the length for the variable test02?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance, Sir Highbury&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-new-variable-using-the-proc-sql-specify-length/m-p/281982#M57245</guid>
      <dc:creator>Sir_Highbury</dc:creator>
      <dc:date>2016-07-04T12:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: create new variable using the proc sql (specify length)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-new-variable-using-the-proc-sql-specify-length/m-p/281987#M57249</link>
      <description>&lt;P&gt;Explicitly specify the length.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"" as test02 length=8.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-new-variable-using-the-proc-sql-specify-length/m-p/281987#M57249</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-04T12:59:12Z</dc:date>
    </item>
  </channel>
</rss>

