<?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: How to create flexible variable/column creation in a dataset in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106854#M1213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used this feature (delicately) in development only, just to have column metadata populate initially. In that sense, not very dynamically...&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;Agree on the usability of this feature, can't see the use of populate metadata tables dynamically with new/deleted column names. Somewhere these columns needs to me mapped, either to succeeding transformations, stored process, information maps or whatever. Try to automate that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2012 09:10:19 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2012-09-03T09:10:19Z</dc:date>
    <item>
      <title>How to create flexible variable/column creation in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106850#M1209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I hope somebody can help me or give some idea how to create a dataset where the number of variables will be determine by number of records retrieve from another dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following textfile (this is just a sample; the actual layout has more than 50 records) which I've imported to a temporary dataset called &lt;EM&gt;&lt;STRONG&gt;Layout_Format&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;TABLE height="240" style="width: 536px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Report_Type&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Group_Description &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Group_Detail &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Group_Order &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Detail_Order&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;===========&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;================= &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;============ &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;=========== &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;============&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Credit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Fixed Expances&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Rent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C0101&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Credit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Fixed Expances&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Car Loan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C0102&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Credit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Fixed Expances&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Student Loan &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C0103&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Credit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Float Expances&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Food&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C0201&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Credit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Float Expances&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Traveling&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C0202&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Credit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Float Expances&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Bills&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;C0203&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Debit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Fixed Income&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Salary&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;D01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;D0101&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Debit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Non-Fixed Income&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;Bonus&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;D02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;D0201&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create another table as name &lt;EM&gt;&lt;STRONG&gt;Report_Layout&lt;/STRONG&gt;&lt;/EM&gt;, it will contain fixed variable; &lt;STRONG&gt;DATE, NAME, &lt;/STRONG&gt;and additional variable based on variable "&lt;STRONG&gt;DETAIL_ORDER&lt;/STRONG&gt;" from &lt;EM&gt;&lt;STRONG&gt;Layout_Format&lt;/STRONG&gt;&lt;/EM&gt; dataset. In this case it will become &lt;STRONG&gt;DATE, NAME, C0101,C0102, C0103,C0201,C0202, C0203, D0101, D0201&lt;/STRONG&gt;. I need to become flexible because subject to changes with rules &amp;amp; regulation or user requirement, the layout will be add or remove.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another textfile that will contain &lt;STRONG&gt;Date, Name, Account_Code, Amount&lt;/STRONG&gt;. This textfile will be joined with &lt;EM&gt;&lt;STRONG&gt;Code_Structure&lt;/STRONG&gt;&lt;/EM&gt; that has the following variable; &lt;STRONG&gt;Account_Code, Account_Description, Group_Detail, Group_Type&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 10:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106850#M1209</guid>
      <dc:creator>Ani_Abby</dc:creator>
      <dc:date>2012-08-29T10:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create flexible variable/column creation in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106851#M1210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are looking for PROC TRANSPOSE&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000063663.htm" title="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000063663.htm"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000063663.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 10:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106851#M1210</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-08-29T10:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create flexible variable/column creation in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106852#M1211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In DI Studio, the column names cannot be named dynamically.&lt;/P&gt;&lt;P&gt;Alternative method: Use transpose transformation: inside the transpose transformation properties, in the options tab where you assign your ID and VAR values, click on the "Additional options" on the left and set the "Update the metadata for the target tables" to yes&lt;/P&gt;&lt;P&gt;But, each time you run your job you will get a prompt that asks if you want to update the metadata, click yes , your ID values that you want to transpose will be in the output table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 06:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106852#M1211</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-09-03T06:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create flexible variable/column creation in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106853#M1212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shivas&lt;/P&gt;&lt;P&gt;Have you ever used this automatic table metadata updating? I've taken so far distance from it as I can't see how such a changing metadata table could be reasonably used later on. So whenever dynamic variable creation can't be avoided, I take refuge to user written code.&lt;/P&gt;&lt;P&gt;I normally try to keep tables "long" so I wouldn't change the structure of the table as the OT asks for but would prefer to have a stable set of columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 07:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106853#M1212</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-09-03T07:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create flexible variable/column creation in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106854#M1213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used this feature (delicately) in development only, just to have column metadata populate initially. In that sense, not very dynamically...&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;Agree on the usability of this feature, can't see the use of populate metadata tables dynamically with new/deleted column names. Somewhere these columns needs to me mapped, either to succeeding transformations, stored process, information maps or whatever. Try to automate that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 09:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106854#M1213</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-09-03T09:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create flexible variable/column creation in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106855#M1214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Linus. That's what I'm thinking as well.&lt;/P&gt;&lt;P&gt;Really curious to learn if someone has a real use case where it makes sense to use this automatic table metadata update in a regular production job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 09:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106855#M1214</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-09-03T09:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create flexible variable/column creation in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106856#M1215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the dynamic column creation will be created in temporary table; 1 step before I add into the main table.&lt;/P&gt;&lt;P&gt;Will it be a problem if I append the transpose data which might not have more than one of the columns into a fix table. Example I only have the following in my transpose table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Date&lt;/LI&gt;&lt;LI&gt;Name&lt;/LI&gt;&lt;LI&gt;D0102&lt;/LI&gt;&lt;LI&gt;C0101&lt;/LI&gt;&lt;LI&gt;C0103&lt;/LI&gt;&lt;LI&gt;C0202&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereelse my final table must have the following column :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Date&lt;/LI&gt;&lt;LI&gt;Name&lt;/LI&gt;&lt;LI&gt;D0101&lt;/LI&gt;&lt;LI&gt;D0102&lt;/LI&gt;&lt;LI&gt;D0103&lt;/LI&gt;&lt;LI&gt;D0104&lt;/LI&gt;&lt;LI&gt;D0201&lt;/LI&gt;&lt;LI&gt;D0202&lt;/LI&gt;&lt;LI&gt;D0203&lt;/LI&gt;&lt;LI&gt;C0101&lt;/LI&gt;&lt;LI&gt;C0102&lt;/LI&gt;&lt;LI&gt;C0103&lt;/LI&gt;&lt;LI&gt;C0201&lt;/LI&gt;&lt;LI&gt;C0202&lt;/LI&gt;&lt;LI&gt;C0203&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I make the final table with fixed column because the formula on the final report is based on those columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 03:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106856#M1215</guid>
      <dc:creator>Ani_Abby</dc:creator>
      <dc:date>2012-09-05T03:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create flexible variable/column creation in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106857#M1216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this still something you look for an answer? Or have you found a solution in-between?&lt;/P&gt;&lt;P&gt;I've given your question some thought and I believe you shouldn't use "update metadata" at all. Proc Transpose is a very tricky procedure for metadata driven development and I believe SAS R&amp;amp;D has probabely not though it through when they've implemented this "update metadata" option. It might be that there is some very special use case covered requested by a customer which might have driven this - but I still can't see how one could reasonably use this option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your case: It appears that you know which columns proc transpose could generate for you. So why don't you just define all possible columns in your target table. The Transform node generating the Proc Transpose statement will still create a physical table only containing the actual columns but then in the next node where you have the loader you can map all columns from source to target (as here you're using metadata information).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The metadata table object and the underlying physical table won't be in sync so you willl most likely get some kind of error if selecting "view data" on the metadata table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe most (if not all) loader generated code will deal nicely with a physical table which has less columns than it's corresponding metadata table object. Just give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 11:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-flexible-variable-column-creation-in-a-dataset/m-p/106857#M1216</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-09-09T11:04:09Z</dc:date>
    </item>
  </channel>
</rss>

