<?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: Da Access SQL a SaS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966787#M376233</link>
    <description>Goodmorning, many tnks to all for your kindly help. &lt;BR /&gt;Tecla</description>
    <pubDate>Mon, 19 May 2025 06:37:57 GMT</pubDate>
    <dc:creator>Tecla1</dc:creator>
    <dc:date>2025-05-19T06:37:57Z</dc:date>
    <item>
      <title>Da Access SQL a SaS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966391#M376123</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;I have to translate a series of Access queries in SaS, in particular I don't know how to translate the queries that call other queries... is there a translator available?&lt;/P&gt;
&lt;P&gt;Many tnks for your kindly help.&lt;/P&gt;
&lt;P&gt;Tecla&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 09:28:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966391#M376123</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2025-05-13T09:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Da Access SQL a SaS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966400#M376125</link>
      <description>&lt;P&gt;In my experience, the best translator sits on the chair in front of the keyboard, and the more complex code is, the more true this gets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With porting code to SAS, in-depth SAS knowledge is necessary, as you will often solve issues better with non-SQL tools.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 11:09:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966400#M376125</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-05-13T11:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Da Access SQL a SaS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966405#M376126</link>
      <description>I would test a an AI tool such as ChatGPT as a start. But then of course the outcome has to be adjusted, tested and verified by someone (you?).&lt;BR /&gt;Please post an example of a query you wish to translate and we might be able to give some general guidelines.</description>
      <pubDate>Tue, 13 May 2025 12:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966405#M376126</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2025-05-13T12:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Da Access SQL a SaS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966406#M376127</link>
      <description>&lt;P&gt;Hi, many tnks for your kindly help, I try with ChatGPT and I receive a Good Replay. The problem are the query who recall some other query, so in the same time Access run al querys in the same time as :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where q_ultimi_ia_3 is another query. In a SQL can I recall another SQL?&lt;/P&gt;
&lt;P&gt;"...................&lt;/P&gt;
&lt;P&gt;INSERT INTO IA_base ( iau_id, azie_id, uop_cod, iab_amb, iau_dui, iab_vui, iab_pui, iab_ggt )&lt;BR /&gt;SELECT interventi_audit.iau_id, interventi_audit.azie_id, interventi_audit.uop_cod, 3 AS Espr2, interventi_audit.iau_dui, interventi_audit.iau_vro, giudizi_audit.gia_per, ExcelDays365(CDate([data]),[iau_dui]) AS gg&lt;BR /&gt;FROM (interventi_audit LEFT JOIN giudizi_audit ON interventi_audit.iau_vro = giudizi_audit.[gia_val]) INNER JOIN &lt;STRONG&gt;q_ultimi_ia_3&lt;/STRONG&gt; ON (interventi_audit.azie_id = q_ultimi_ia_3.azie_id) AND (interventi_audit.uop_cod = q_ultimi_ia_3.uop_cod) AND (interventi_audit.iau_dui = q_ultimi_ia_3.iau_dui) AND (interventi_audit.dataa = q_ultimi_ia_3.dataa)&lt;BR /&gt;ORDER BY interventi_audit.iau_dui DESC;&lt;/P&gt;
&lt;P&gt;.................."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tnks a lot !.&lt;/P&gt;
&lt;P&gt;Tecla&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 12:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966406#M376127</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2025-05-13T12:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Da Access SQL a SaS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966407#M376128</link>
      <description>I know, but I'm not so well in SaS...&lt;BR /&gt;Tnks a lot:&lt;BR /&gt;Tecla</description>
      <pubDate>Tue, 13 May 2025 12:48:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966407#M376128</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2025-05-13T12:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Da Access SQL a SaS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966411#M376129</link>
      <description>&lt;P&gt;No idea what you mean by "RECALL".&lt;/P&gt;
&lt;P&gt;If you want to replace a table reference like&amp;nbsp;&lt;SPAN&gt;q_ultimi_ia_3 with a sub-query then just do that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So if you had&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;... INNER JOIN q_ultimi_ia_3 ON ...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;You could run something like&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;... INNER JOIN (select a,c,c from x.y) q_ultimi_ia_3 ON ...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 13:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966411#M376129</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-13T13:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Da Access SQL a SaS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966412#M376130</link>
      <description>&lt;P&gt;Tnks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;q_ultimi_ia_3&amp;nbsp;" is not a table , is another query.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In Access is possible to use query like a "Matriosca" in SaS can I do that?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tnks a lot.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tecla&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 13:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966412#M376130</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2025-05-13T13:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Da Access SQL a SaS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966413#M376131</link>
      <description>Not exactly, with that syntax.&lt;BR /&gt;One way is to define q_ultimi_ia_3 as view instead.&lt;BR /&gt;Or if this is the only place it's being used, paste that query in the current query as an in-line view (See &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;'s example).</description>
      <pubDate>Tue, 13 May 2025 13:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966413#M376131</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2025-05-13T13:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Da Access SQL a SaS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966414#M376132</link>
      <description>&lt;PRE class="language-sas"&gt;&lt;CODE&gt;... INNER JOIN (select a,c,c from x.y) q_ultimi_ia_3 ON ...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What mean "x.y"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tnks&lt;/P&gt;
&lt;P&gt;Tecla&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 14:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966414#M376132</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2025-05-13T14:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Da Access SQL a SaS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966418#M376133</link>
      <description>&lt;P&gt;?? Is was just and example SQL query since you did show what the missing query was.&lt;/P&gt;
&lt;P&gt;So&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;select a,b,c from x.y&lt;/LI-CODE&gt;
&lt;P&gt;Says to retrieve the variables A B and C from the dataset Y in the library pointed to by the libref X.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing you will definitely need to change from Microsoft syntax is the way you refer to names (tables or datasets, columns or variables, etc).&amp;nbsp; You cannot use those square brackets in SAS code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So something like&amp;nbsp;&lt;SPAN&gt;giudizi_audit.[gia_val] in your example will need to be converted to normal syntax like&amp;nbsp;giudizi_audit.gia_val .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 14:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966418#M376133</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-13T14:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Da Access SQL a SaS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966787#M376233</link>
      <description>Goodmorning, many tnks to all for your kindly help. &lt;BR /&gt;Tecla</description>
      <pubDate>Mon, 19 May 2025 06:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Da-Access-SQL-a-SaS/m-p/966787#M376233</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2025-05-19T06:37:57Z</dc:date>
    </item>
  </channel>
</rss>

