<?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: When will we create a new column manually in a SAS DI- Table loader transformation in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/586062#M17907</link>
    <description>&lt;P&gt;Quick answer - no.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The main difference between User Written code and User Written transformation is that the later logic can be reused. There is no automatic populaitn of tnew arget column names.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2019 11:51:52 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2019-09-04T11:51:52Z</dc:date>
    <item>
      <title>When will we create a new column manually in a SAS DI- Table loader transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/585991#M17904</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am using SAS DI user written transformation and I have the following doubts. Please suggest to gain some knowledge.&lt;/P&gt;&lt;P&gt;I am using an existing user written transformation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that transformation, in the existing Data step block I am manually writing a code and creating one new column X.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That column loads the data into the next level crated table ABC.&lt;/P&gt;&lt;P&gt;what all steps I need to run in terms of executing it successfully.&lt;/P&gt;&lt;P&gt;1. In the mapping section, do I need to right click --&amp;gt; and create a new column X.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Map it to the ABC column manually as X is an existing column already.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very much interested in this topic here. Please help me in understanding if it is correct way of dealing while creating a new column.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 02:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/585991#M17904</guid>
      <dc:creator>VVDR</dc:creator>
      <dc:date>2019-09-04T02:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: When will we create a new column manually in a SAS DI- Table loader transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/585994#M17905</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/79200"&gt;@VVDR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do whatever you like with user written code so it's sort of hard to answer your question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't use any of the metadata based macro variables that DIS generates in your user written code then the code won't depend on anything you do in SAS Metadata. In such a case you just want to have a target metadata table that's in sync with the physical table that your user written code generates.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It still doesn't hurt if you do the source to target mapping - not because this will affect what gets executed but because it will support metadata based lineage and impact analysis.&lt;/P&gt;
&lt;P&gt;I personally would as a bare minimum at least use the DIS generated macro variables for the source and target tables in your user written code (&amp;amp;_input, &amp;amp;_output). Have a look into the code tab and you'll see what gets generated and is available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 02:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/585994#M17905</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-09-04T02:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: When will we create a new column manually in a SAS DI- Table loader transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/586045#M17906</link>
      <description>&lt;P&gt;The other way of asking this question-- Can the user written transformation generate a new column so that it can be mapped to the target table columns.&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rams129&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 11:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/586045#M17906</guid>
      <dc:creator>VVDR</dc:creator>
      <dc:date>2019-09-04T11:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: When will we create a new column manually in a SAS DI- Table loader transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/586062#M17907</link>
      <description>&lt;P&gt;Quick answer - no.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The main difference between User Written code and User Written transformation is that the later logic can be reused. There is no automatic populaitn of tnew arget column names.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 11:51:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/586062#M17907</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2019-09-04T11:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: When will we create a new column manually in a SAS DI- Table loader transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/586189#M17908</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/79200"&gt;@VVDR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I always do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Write the code using &amp;amp;_INPUT and &amp;amp;_OUTPUT as data set names in the code.&lt;/LI&gt;
&lt;LI&gt;Update the output table's metadata after succesful execution.&lt;/LI&gt;
&lt;LI&gt;Fix the mappings to secure lineage and column impact analysis.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Tip:&lt;/P&gt;
&lt;P&gt;A user written transformation often do complicated tings (otherwise a standard transformation is preferred), so a new output variable is a result of operations on several input columns. You cannot map more than one input column to an output column, but it can be solved with an expression on the output column like %dummy(inputcol1,inputcol2,inputcol3). The macro is never executed and is just a way of forcing mapping n:1,&amp;nbsp; so there is no need for an actual %dummy macro in a macro library.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 16:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/586189#M17908</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-09-04T16:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: When will we create a new column manually in a SAS DI- Table loader transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/586191#M17909</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/79200"&gt;@VVDR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tips continued:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All &lt;U&gt;permanent&lt;/U&gt; tables read or written by the transformation code should be on the canvas and connected to the transformation. Otherwise the lineage is lost.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 16:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/When-will-we-create-a-new-column-manually-in-a-SAS-DI-Table/m-p/586191#M17909</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-09-04T16:42:58Z</dc:date>
    </item>
  </channel>
</rss>

