<?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: Trying to stack three datasets in one in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-stack-three-datasets-in-one/m-p/273309#M54454</link>
    <description>Check that your Field_Name variables in the second and third datasets are in fact numeric.  Alternatively, you can have this error if you misspell the dataset name and the variable is not found.&lt;BR /&gt;</description>
    <pubDate>Thu, 26 May 2016 15:53:42 GMT</pubDate>
    <dc:creator>Haris</dc:creator>
    <dc:date>2016-05-26T15:53:42Z</dc:date>
    <item>
      <title>Trying to stack three datasets in one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-stack-three-datasets-in-one/m-p/273303#M54450</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table final_data_set as

select  field_name
	, value1
from HSD.types_OfAttempts

UNION ALL

select put(field_name, Z3.) 
	, 	 value1 

from HSD.number_attempts


UNION ALL


select put(field_name, Z3.) 
	, value1

from HSD.final_timeframes
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The first dataset has field_name as character. It has types of attempts made like phone, email, face2face.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last two datasets have field_name as numeric.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Numeric format Z in PUT function requires a numeric argument.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 15:43:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-stack-three-datasets-in-one/m-p/273303#M54450</guid>
      <dc:creator>ashwini2</dc:creator>
      <dc:date>2016-05-26T15:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to stack three datasets in one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-stack-three-datasets-in-one/m-p/273308#M54453</link>
      <description>&lt;P&gt;Well, your &amp;nbsp;error message contradicts your statements regarding the variable type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Review the proc contents output of each of your three datasets and modify your code accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that still does not work, post the results of your proc contents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 15:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-stack-three-datasets-in-one/m-p/273308#M54453</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-26T15:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to stack three datasets in one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-stack-three-datasets-in-one/m-p/273309#M54454</link>
      <description>Check that your Field_Name variables in the second and third datasets are in fact numeric.  Alternatively, you can have this error if you misspell the dataset name and the variable is not found.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 May 2016 15:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-stack-three-datasets-in-one/m-p/273309#M54454</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2016-05-26T15:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to stack three datasets in one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-stack-three-datasets-in-one/m-p/273313#M54457</link>
      <description>&lt;P&gt;I figured it was a silly mistake.&lt;/P&gt;&lt;P&gt;I did a proc contents and matched the variable type &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks so much guys.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 16:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-stack-three-datasets-in-one/m-p/273313#M54457</guid>
      <dc:creator>ashwini2</dc:creator>
      <dc:date>2016-05-26T16:02:07Z</dc:date>
    </item>
  </channel>
</rss>

