<?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: Append datasets with filters in one transformation in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Append-datasets-with-filters-in-one-transformation/m-p/680354#M19510</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/75897"&gt;@Rama_V&lt;/a&gt;&amp;nbsp;How to handle the mapping if I use&amp;nbsp;&lt;SPAN&gt;User Written Code Transformation as we have more than one source dataset to map to the target? I already tried what you said in&amp;nbsp;User Written Code Transformation but I got warning&amp;nbsp;&amp;nbsp;'A mapping with multiple source columns requires a expression'. in the mapping section.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Aug 2020 02:49:44 GMT</pubDate>
    <dc:creator>David_Billa</dc:creator>
    <dc:date>2020-08-31T02:49:44Z</dc:date>
    <item>
      <title>Append datasets with filters in one transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Append-datasets-with-filters-in-one-transformation/m-p/680201#M19501</link>
      <description>&lt;P&gt;My objective is to append the source datasets in one of the DI Job. I could do this with the User Written code Transformation and log also confirmed the required Output rows. But when I tried to open the dataset, it's not opening due to the warning 'A mapping with multiple sourcr columns requires a expression'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to seek help to handle mapping in the target dataset while appending the four datasets which had similar structure. Without mapping from to target it's not producing any rows. I would like to achive this in one step&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code which I have in User Written code Transformation&amp;nbsp;is,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data ALLOC_EXP_A(drop=Expense Paid Address)
) ;
set Alloc_Expns 
Commns_Alloc_Expns 
Attri_Acqs_Alloc_Expns 
Alloc_Expns;
VALUE_LC=Expense;
VALUE_TC=Expense;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/75897"&gt;@Rama_V&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12151"&gt;@Jagadishkatam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 16:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Append-datasets-with-filters-in-one-transformation/m-p/680201#M19501</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-08-30T16:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping while append the datasets with SET statement</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Append-datasets-with-filters-in-one-transformation/m-p/680286#M19502</link>
      <description>&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;to seek his input&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 11:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Append-datasets-with-filters-in-one-transformation/m-p/680286#M19502</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-08-30T11:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Append datasets with filters in one transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Append-datasets-with-filters-in-one-transformation/m-p/680341#M19508</link>
      <description>&lt;P&gt;User Written Transformation creates a work table and they are referred by auto generated macro variables. for example &lt;STRONG&gt;_input1&lt;/STRONG&gt;&amp;nbsp;,&amp;nbsp;&lt;STRONG&gt;_output1&lt;/STRONG&gt;&amp;nbsp;they can be used to refer input and output table connected to the transformation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Write the below code with &amp;amp;_output1. and execute of the code. If the target table doesn't have metadata columns then it needs to updated. It is done by right clicking on the target table then select update metadata. If the option is not shown try after saving the job.This should populate metadata columns from the physical data set referred by the target table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data &amp;amp;_output1.;&lt;BR /&gt;set Alloc_Expns 
Commns_Alloc_Expns 
Attri_Acqs_Alloc_Expns 
Alloc_Expns;
VALUE_LC=Expense;
VALUE_TC=Expense;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried Append Transformation, which does same job and can visualize the columns&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 01:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Append-datasets-with-filters-in-one-transformation/m-p/680341#M19508</guid>
      <dc:creator>Rama_V</dc:creator>
      <dc:date>2020-08-31T01:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Append datasets with filters in one transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Append-datasets-with-filters-in-one-transformation/m-p/680354#M19510</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/75897"&gt;@Rama_V&lt;/a&gt;&amp;nbsp;How to handle the mapping if I use&amp;nbsp;&lt;SPAN&gt;User Written Code Transformation as we have more than one source dataset to map to the target? I already tried what you said in&amp;nbsp;User Written Code Transformation but I got warning&amp;nbsp;&amp;nbsp;'A mapping with multiple source columns requires a expression'. in the mapping section.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 02:49:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Append-datasets-with-filters-in-one-transformation/m-p/680354#M19510</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-08-31T02:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Append datasets with filters in one transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Append-datasets-with-filters-in-one-transformation/m-p/680361#M19511</link>
      <description>&lt;P&gt;Other than user written transformation, most of the transformations are auto generated code, means when you map columns and write expression in the mapping section the code is generated in the code section accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For User written, the expression is written explicitly in the code section, that means you do not need an expression in the mapping but mapping single target column with two source columns gives warning. You can ignore or to avoid this warning, just propagate the columns you need.&amp;nbsp;Mapping is not required from source to target columns&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is confusing, use Append Transformation.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 04:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Append-datasets-with-filters-in-one-transformation/m-p/680361#M19511</guid>
      <dc:creator>Rama_V</dc:creator>
      <dc:date>2020-08-31T04:00:47Z</dc:date>
    </item>
  </channel>
</rss>

