<?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: SAS Data Integration Studio - transforming all tables in a library in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-transforming-all-tables-in-a-library/m-p/636201#M19054</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319641"&gt;@TomekQ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Totally agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;: That feels more like some adhoc job you need to support development and not something you'd implement as a regular DIS job in production. If so then just write some SAS code - and If you want to run it out of DIS then copy/paste this code into a DIS user written transformation - and if you want to take it one step further then connect the tables you want to delete rows from as input to the user written transformation and use the generated macros to loop over the connected tables and delete the rows from the tables of your choosing.&lt;/P&gt;
&lt;P&gt;....and be aware that any SQL Delete only logically deletes rows so the file size of the physical SAS file won't change.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 12:23:58 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2020-03-31T12:23:58Z</dc:date>
    <item>
      <title>SAS Data Integration Studio - transforming all tables in a library</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-transforming-all-tables-in-a-library/m-p/636108#M19049</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to perform a transformation on all tables in a library in SAS DIS. How can I do it? Let's say that I want to delete rows based on a certain condition in every table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 07:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-transforming-all-tables-in-a-library/m-p/636108#M19049</guid>
      <dc:creator>TomekQ</dc:creator>
      <dc:date>2020-03-31T07:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data Integration Studio - transforming all tables in a library</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-transforming-all-tables-in-a-library/m-p/636190#M19053</link>
      <description>&lt;P&gt;Since DI Studio is quite focused on metadata dependencies, traceability and lineage.&lt;/P&gt;
&lt;P&gt;Therefore, it's not so easy/good to build generic jobs or keep generic metadata object (tables).&lt;/P&gt;
&lt;P&gt;As a SAS programmer you would probably just build a macro to do this task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do the tables have the same structure?&lt;/P&gt;
&lt;P&gt;For example if each table represent lets say one month of data, you can have part of the physical table name as macro variable. Then you can build a parameterized job which will have as input (using the loop transformation) a table with a list of tables/dates/etc). One caveat is that you can't open those tables within DI Studio to view the data, because the macro variable is not set in that work space server session that opens the table. There are work-arounds, but none perfect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 12:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-transforming-all-tables-in-a-library/m-p/636190#M19053</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2020-03-31T12:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data Integration Studio - transforming all tables in a library</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-transforming-all-tables-in-a-library/m-p/636201#M19054</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319641"&gt;@TomekQ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Totally agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;: That feels more like some adhoc job you need to support development and not something you'd implement as a regular DIS job in production. If so then just write some SAS code - and If you want to run it out of DIS then copy/paste this code into a DIS user written transformation - and if you want to take it one step further then connect the tables you want to delete rows from as input to the user written transformation and use the generated macros to loop over the connected tables and delete the rows from the tables of your choosing.&lt;/P&gt;
&lt;P&gt;....and be aware that any SQL Delete only logically deletes rows so the file size of the physical SAS file won't change.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 12:23:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-transforming-all-tables-in-a-library/m-p/636201#M19054</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-03-31T12:23:58Z</dc:date>
    </item>
  </channel>
</rss>

