<?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: DI Studio: use parameters in CAS table name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DI-Studio-use-parameters-in-CAS-table-name/m-p/697621#M213223</link>
    <description>&lt;P&gt;For clarification, can you state your DI Studio and Viya versions?&lt;/P&gt;
&lt;P&gt;Also, what connection method/transformations do you use for the interaction with CAS?&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2020 14:15:36 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2020-11-09T14:15:36Z</dc:date>
    <item>
      <title>DI Studio: use parameters in CAS table name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DI-Studio-use-parameters-in-CAS-table-name/m-p/697588#M213210</link>
      <description>&lt;P&gt;Hello, I'm used to being able to use macro variables in table names in DI Studio, mostly as parameters in loops. However when I use a CAS table the macro expression is not recognized although it's correctly registered in the "parameters" tab of the objects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if I have a loop that uses a variable &amp;amp;i for iterations I want it to populate one CAS table per iteration (table_1, table_2 and so on). I generate the input tables (on a mysql database) with the same method and there it works flawlessly. However each iteration of the CAS load job will fill the same CAS table called "table_&amp;amp;i". Is there a method to avoid this problem?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 12:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DI-Studio-use-parameters-in-CAS-table-name/m-p/697588#M213210</guid>
      <dc:creator>paul_e</dc:creator>
      <dc:date>2020-11-09T12:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio: use parameters in CAS table name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DI-Studio-use-parameters-in-CAS-table-name/m-p/697591#M213211</link>
      <description>&lt;P&gt;Looks like DI Studio does something that prevents resolving the macro variable. Take a look at the code that is created, and post it here.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 12:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DI-Studio-use-parameters-in-CAS-table-name/m-p/697591#M213211</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-09T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio: use parameters in CAS table name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DI-Studio-use-parameters-in-CAS-table-name/m-p/697621#M213223</link>
      <description>&lt;P&gt;For clarification, can you state your DI Studio and Viya versions?&lt;/P&gt;
&lt;P&gt;Also, what connection method/transformations do you use for the interaction with CAS?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 14:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DI-Studio-use-parameters-in-CAS-table-name/m-p/697621#M213223</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2020-11-09T14:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio: use parameters in CAS table name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DI-Studio-use-parameters-in-CAS-table-name/m-p/697826#M213334</link>
      <description>&lt;P&gt;Here's my system:&lt;/P&gt;&lt;P&gt;DI Studio 4.904 on Windows Server 2016 10.0&lt;/P&gt;&lt;P&gt;SAS 9.4M7 on Red Hat Linux&lt;/P&gt;&lt;P&gt;Viya V.03.05M0P111119&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a look at the code and it seems that the problem is caused by the fact that the CAS loader resolves the physical table name from the DI job dialog into a string in single quotes. As far as i know this prevents macro variables in the string from being resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;         proc casutil incaslib="My Library" outcaslib="My Library" sessref=CAS_f7eb6675v831487fa018e835e1a03d4c;
                      save casdata='TABLENAME_&amp;amp;i';
         quit;
         &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Nov 2020 09:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DI-Studio-use-parameters-in-CAS-table-name/m-p/697826#M213334</guid>
      <dc:creator>paul_e</dc:creator>
      <dc:date>2020-11-10T09:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio: use parameters in CAS table name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DI-Studio-use-parameters-in-CAS-table-name/m-p/697829#M213335</link>
      <description>&lt;P&gt;You are absolutely right, the single quotes cause your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bring this to the attention of SAS Technical Support, to me this is a bug. DI Studio should supply that string in double quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might have to do this action in a user written transformation as a (hopefully temporary) workaround.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 09:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DI-Studio-use-parameters-in-CAS-table-name/m-p/697829#M213335</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-10T09:31:08Z</dc:date>
    </item>
  </channel>
</rss>

