<?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: Error running Proc DS2 code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-running-Proc-DS2-code/m-p/287875#M288845</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/64601"&gt;@Linus&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, no problem. I sent a track to the support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amazigh.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2016 16:57:39 GMT</pubDate>
    <dc:creator>Amazigh</dc:creator>
    <dc:date>2016-07-28T16:57:39Z</dc:date>
    <item>
      <title>Error running Proc DS2 code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-running-Proc-DS2-code/m-p/84273#M288841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run a Proc DS2, which is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options emailsys=smtp emailhost=exchangeind.apac.sas.com emailport=25;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;filename mymail email "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:emailsupport@yahoo.com"&gt;emailsupport@yahoo.com&lt;/A&gt;&lt;SPAN&gt;" subject="test message";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc ds2;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; method run();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mymail;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'Test Ds2';&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;enddata;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error in the log is &lt;/P&gt;&lt;P&gt;ERROR: Compilation error.&lt;/P&gt;&lt;P&gt;ERROR: Missing END statement for the method run.&lt;/P&gt;&lt;P&gt;ERROR: Parse error.&amp;nbsp; Expecting end of input on source line 195:&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_;&amp;nbsp; method run();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt;file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running the same on SAS 9.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight would be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 11:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-running-Proc-DS2-code/m-p/84273#M288841</guid>
      <dc:creator>DannyDsouza</dc:creator>
      <dc:date>2013-03-21T11:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Proc DS2 code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-running-Proc-DS2-code/m-p/84274#M288842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no file statement in proc ds2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 08:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-running-Proc-DS2-code/m-p/84274#M288842</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2013-03-22T08:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Proc DS2 code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-running-Proc-DS2-code/m-p/287260#M288843</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to execute a simple proc DS2 and I have an ERROR message that gives me a headache !&lt;/P&gt;&lt;P&gt;I'm under SAS 9.4.01M2PXXXXXXXX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC DS2 NOLIBS CONN="DRIVER=ODBC;DB=&amp;amp;Db.; UID=&amp;amp;uid.; PWD=&amp;amp;DbPwdEncrypt.; CATALOG= (SI=DW_GIt)"; 
   DATA;
      METHOD RUN();
         SET 
{
		SELECT DISTINCT  
	  	a.ClePointDeVenteSI 
	  ,	STRIP(PUT(a.CleMoisAnnee,6.)) AS DT_PERIODE
	  ,	SUBSTR(CALCULATED DT_PERIODE,5,2) AS DT_MOIS
 	  ,	SUBSTR(CALCULATED DT_PERIODE,1,4) AS DT_ANNEE
	  , a.ClePresentation
	  , a.CleCanalDeDistribution
      , SUM(a.Unite) AS Unite
      , SUM(a.CAHT)  AS CAHT
	
	FROM  SI.FaitMoisAchat(WHERE =(CleMoisAnnee = 201604 AND CleCanalDeDistribution in (1,2))) AS a
	GROUP BY a.ClePointDeVenteSI, a.ClePresentation

};
      END;
   ENDDATA;

RUN;QUIT;&lt;/PRE&gt;&lt;P&gt;ERROR: Invalid connection string.&lt;BR /&gt;ERROR: TKTS initialization failed.&lt;BR /&gt;ERROR: Expected list item separator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can not manage to handle this issue that hampers me to handle further merges with PROC DS2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone could help me please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amazigh.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 16:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-running-Proc-DS2-code/m-p/287260#M288843</guid>
      <dc:creator>Amazigh</dc:creator>
      <dc:date>2016-07-26T16:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Proc DS2 code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-running-Proc-DS2-code/m-p/287869#M288844</link>
      <description>@Amizigh, even if your inquire is in the same area, don't hijack and old thread. Each thread corresponds to one question.</description>
      <pubDate>Thu, 28 Jul 2016 16:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-running-Proc-DS2-code/m-p/287869#M288844</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-07-28T16:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error running Proc DS2 code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-running-Proc-DS2-code/m-p/287875#M288845</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/64601"&gt;@Linus&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, no problem. I sent a track to the support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amazigh.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-running-Proc-DS2-code/m-p/287875#M288845</guid>
      <dc:creator>Amazigh</dc:creator>
      <dc:date>2016-07-28T16:57:39Z</dc:date>
    </item>
  </channel>
</rss>

