<?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: set several data set together with cut off variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/set-several-data-set-together-with-cut-off-variable/m-p/247867#M46495</link>
    <description>&lt;P&gt;Most likely, the variable also has a format attached to it that is truncating the displayed value.&amp;nbsp; Add the FORMAT statement AFTER the SET statement, to remove the format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format var_level;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 22:02:58 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-02-03T22:02:58Z</dc:date>
    <item>
      <title>set several data set together with cut off variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-several-data-set-together-with-cut-off-variable/m-p/247851#M46488</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to combine several data together by using set statement. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thought I ues length statement to set up the "var_level " as &amp;nbsp;$ 100 . &amp;nbsp;However , the var_level was still trucated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any solution ? &amp;nbsp;Thank you very much ! &amp;nbsp; &amp;nbsp;(The length is enough to cover the var_level at each file. , no error message. )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ivy&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;data rpt_cat;&lt;BR /&gt;length var_level $ 100. ;&lt;BR /&gt;set rpt_gender &amp;nbsp;&lt;/P&gt;&lt;P&gt;rpt_uidxinsplan ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3218 data rpt_cat;&lt;BR /&gt;3219 length var_level $ 100. ;&lt;BR /&gt;3220 set rpt_gender rpt_uidxinsplan ;&lt;BR /&gt;3221 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 3 observations read from the data set WORK.RPT_GENDER.&lt;BR /&gt;NOTE: There were 14 observations read from the data set WORK.RPT_UIDXINSPLAN.&lt;BR /&gt;NOTE: The data set WORK.RPT_CAT has 17 observations and 7 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12263i52326B82BA564F48/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Original_f.PNG" title="Original_f.PNG" /&gt;</description>
      <pubDate>Wed, 03 Feb 2016 21:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-several-data-set-together-with-cut-off-variable/m-p/247851#M46488</guid>
      <dc:creator>Ivy</dc:creator>
      <dc:date>2016-02-03T21:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: set several data set together with cut off variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-several-data-set-together-with-cut-off-variable/m-p/247854#M46490</link>
      <description>&lt;P&gt;Please post code used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure you put length statement before the SET statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 21:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-several-data-set-together-with-cut-off-variable/m-p/247854#M46490</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-03T21:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: set several data set together with cut off variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-several-data-set-together-with-cut-off-variable/m-p/247867#M46495</link>
      <description>&lt;P&gt;Most likely, the variable also has a format attached to it that is truncating the displayed value.&amp;nbsp; Add the FORMAT statement AFTER the SET statement, to remove the format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format var_level;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 22:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-several-data-set-together-with-cut-off-variable/m-p/247867#M46495</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-02-03T22:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: set several data set together with cut off variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-several-data-set-together-with-cut-off-variable/m-p/247869#M46497</link>
      <description>&lt;P&gt;Edit: I see,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding﻿&lt;/a&gt;&amp;nbsp;was faster and had the same idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/70526"&gt;@Ivy﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason for the truncation may be a format (such as $17.) which is permanently associated with variable VAR_LEVEL. This would be shown in column "Format" of the PROC CONTENTS output for dataset RPT_CAT. You could get rid of this format by adding the following statement before the &lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt; in your data step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format var_level;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 22:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-several-data-set-together-with-cut-off-variable/m-p/247869#M46497</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-03T22:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: set several data set together with cut off variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-several-data-set-together-with-cut-off-variable/m-p/247891#M46505</link>
      <description>&lt;P&gt;Thank you very much ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Removing format works beautifully !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 01:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-several-data-set-together-with-cut-off-variable/m-p/247891#M46505</guid>
      <dc:creator>Ivy</dc:creator>
      <dc:date>2016-02-04T01:41:19Z</dc:date>
    </item>
  </channel>
</rss>

