<?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: DS2 + sql query in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/595579#M171372</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt; so that I can hide the code&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You could use a secure macro.&lt;/P&gt;
&lt;P&gt;Be sure to read this discussion:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Compile-already-existing-Macros-SECURE/td-p/367247" target="_self"&gt;&lt;SPAN&gt;Compile already existing Macros SECURE&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 22:18:03 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-10-10T22:18:03Z</dc:date>
    <item>
      <title>DS2 + sql query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/594785#M170970</link>
      <description>&lt;P&gt;I am new to DS2 and want to test a few things. In the below example, hoe can I create a package for proc sql step (table3) and use it further in the program?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data table1;
input id name $;
cards;
1 name1
2 name2
3 name3
4 name4
;
run;
data table2;
input id city $;
cards;
1 city1
2 city2
3 city3
5 city5
;
run;

proc sql;
create table table3 as
select a.id, a.name, b.city
from table1 a
left join table2 as b
on a.id = b.id

order by 1;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 15:36:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/594785#M170970</guid>
      <dc:creator>pablas29</dc:creator>
      <dc:date>2019-10-08T15:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 + sql query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/595244#M171207</link>
      <description>&lt;P&gt;1. Have see seen this &lt;A href="https://documentation.sas.com/?docsetId=ds2ref&amp;amp;docsetTarget=p0htt17wcsy0sun0z7xzxn2x8q4f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;page (&lt;SPAN&gt;SAS® 9.4 DS2 Language Reference, Sixth Edition&lt;/SPAN&gt;&amp;nbsp;-&amp;nbsp;Example: SQL in a DS2 Program)&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;2. Any reason you want to do this? DS2 is only useful if you have distributed data.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 03:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/595244#M171207</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-10T03:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 + sql query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/595524#M171339</link>
      <description>&lt;P&gt;Yes, I have been to that page.&lt;/P&gt;&lt;P&gt;But what I need is to create a package of that sql step and then send that package to someone to use. I need the package so that I can hide the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/595524#M171339</guid>
      <dc:creator>pablas29</dc:creator>
      <dc:date>2019-10-10T18:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 + sql query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/595579#M171372</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; so that I can hide the code&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You could use a secure macro.&lt;/P&gt;
&lt;P&gt;Be sure to read this discussion:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Compile-already-existing-Macros-SECURE/td-p/367247" target="_self"&gt;&lt;SPAN&gt;Compile already existing Macros SECURE&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 22:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/595579#M171372</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-10T22:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 + sql query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/598219#M172498</link>
      <description>&lt;P&gt;I apologise for late response. I was aware of the SECURE option but the problem is that&lt;SPAN&gt;&amp;nbsp;stored compiled macro can't be moved to another operating system or to a different release of SAS.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/598219#M172498</guid>
      <dc:creator>pablas29</dc:creator>
      <dc:date>2019-10-21T19:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 + sql query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/603305#M174806</link>
      <description>Any solution?</description>
      <pubDate>Mon, 11 Nov 2019 18:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/603305#M174806</guid>
      <dc:creator>pablas29</dc:creator>
      <dc:date>2019-11-11T18:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 + sql query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/603323#M174807</link>
      <description>&lt;P&gt;What did you try? In what way did it fail?&lt;/P&gt;
&lt;P&gt;Also why would you WANT to hide the code?&amp;nbsp; Is there some reason?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 19:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/603323#M174807</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-11T19:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 + sql query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/603400#M174822</link>
      <description>&lt;P&gt;&lt;EM&gt; &amp;gt; stored compiled macro can't be moved to another operating system or to a different release of SAS.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whereas a DS2 package is immune to these issues?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 23:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/603400#M174822</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-11-11T23:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 + sql query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/840232#M332241</link>
      <description>&lt;P&gt;Good day&lt;/P&gt;&lt;P&gt;I would like to know if you are creating in memory variables?&lt;/P&gt;&lt;P&gt;will you be using Packages, methods and data grids?&lt;/P&gt;&lt;P&gt;just a highlight n your purpose of your exercise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working on sas ds2 to store temporal variables where system will pass one input at time, or for batch processing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 10:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/840232#M332241</guid>
      <dc:creator>langalife</dc:creator>
      <dc:date>2022-10-24T10:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 + sql query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/840237#M332243</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/293682"&gt;@langalife&lt;/a&gt;&amp;nbsp;Unfortunately some old discussions don't get closed. Always worth to check the last posted date.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1666609849631.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76481iDB0D5361E26D6222/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1666609849631.png" alt="Patrick_0-1666609849631.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 11:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DS2-sql-query/m-p/840237#M332243</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-10-24T11:10:57Z</dc:date>
    </item>
  </channel>
</rss>

