<?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 DI - Presetting New Column Data Value in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Presetting-New-Column-Data-Value/m-p/91326#M931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a newbie trying to Integration Studio and trying to figure if i am able to add a new column and preset the column value to a specific value based on the data set? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am importing csv data file through typical file reader and table loader to a destinated output table. I can add an additional column in the final output table with no issue, but trying to find the correct way to set the column value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 scenarios :&lt;/P&gt;&lt;P&gt;1. New column 'New' with all data in the column set as 1&lt;/P&gt;&lt;P&gt;2. Based on say a column data 'criteria', if data = 1, 'New' column set as 2, else set as 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should i typically do this in the job flow diagram and execute easily at every run time depending on my files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 May 2013 15:38:24 GMT</pubDate>
    <dc:creator>wsquare</dc:creator>
    <dc:date>2013-05-31T15:38:24Z</dc:date>
    <item>
      <title>DI - Presetting New Column Data Value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Presetting-New-Column-Data-Value/m-p/91326#M931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a newbie trying to Integration Studio and trying to figure if i am able to add a new column and preset the column value to a specific value based on the data set? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am importing csv data file through typical file reader and table loader to a destinated output table. I can add an additional column in the final output table with no issue, but trying to find the correct way to set the column value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 scenarios :&lt;/P&gt;&lt;P&gt;1. New column 'New' with all data in the column set as 1&lt;/P&gt;&lt;P&gt;2. Based on say a column data 'criteria', if data = 1, 'New' column set as 2, else set as 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should i typically do this in the job flow diagram and execute easily at every run time depending on my files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 15:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Presetting-New-Column-Data-Value/m-p/91326#M931</guid>
      <dc:creator>wsquare</dc:creator>
      <dc:date>2013-05-31T15:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: DI - Presetting New Column Data Value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Presetting-New-Column-Data-Value/m-p/91327#M932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most transformations allow you to define expressions in the mapping tab. So for example using the table loader if you want a '1' set for a new numeric column simply tipe 1 in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 2) map column "a" to the new column, the define an expression accordingly, eg. a case like "when a='25' then 2 else 3".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jun 2013 12:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Presetting-New-Column-Data-Value/m-p/91327#M932</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-06-01T12:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: DI - Presetting New Column Data Value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Presetting-New-Column-Data-Value/m-p/91328#M933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have read expression feature in the guide, but to be honest, for a newbie, the expression button is hardly visible for usage in those mapping screens, not to mention some of the mapping scenarios do not allow expression usage also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thanks for the pointer, have got that worked on upon your initial reply! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 14:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Presetting-New-Column-Data-Value/m-p/91328#M933</guid>
      <dc:creator>wsquare</dc:creator>
      <dc:date>2013-06-24T14:09:11Z</dc:date>
    </item>
  </channel>
</rss>

