<?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 syntax correct in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498234#M72508</link>
    <description>&lt;P&gt;That is it, does it work now?&lt;/P&gt;&lt;P&gt;Happy data mining&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Sep 2018 14:31:16 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2018-09-23T14:31:16Z</dc:date>
    <item>
      <title>SAS syntax correct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498229#M72505</link>
      <description>&lt;P&gt;Please kindly me help me with&amp;nbsp;SAS syntax correct for each line.&lt;/P&gt;&lt;P&gt;Like line2 with the right option should be "out" but not "outdata"&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1.
proc sort data=ccm_base_cust_inf_m(keep becif_custid cert_id_18)
2.
	outdata=ccm_base_cust_inf_m;
	where cert_id_18 &amp;lt;&amp;gt;"";
	by cert_id_18;

3.
proc sort data=prom_cust_inf(rename=(id=cert_id_18));
	by id;

4.
data prom_cust_inf_1;
5.
	merge prom_cust_inf(in=a)
		ccm_base_acct_inf_m(in=b);
6.
	by id;
	if a;
	length base_city=$20.;
	base_city=input(base_city,$city.);

7.
%let city=%str(NY","SH","TK");

8.
proc summary data=prom_cust_inf_1 nway;
9.
	by base_city;
10.
	var response_flag;
	out=stat_city_sum(drop=_type_) sum;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Sep 2018 13:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498229#M72505</guid>
      <dc:creator>ccnky123</dc:creator>
      <dc:date>2018-09-23T13:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax correct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498231#M72506</link>
      <description>&lt;P&gt;change :&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;outdata&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;ccm_base_cust_inf_m&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;out&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;ccm_base_cust_inf_m&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 14:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498231#M72506</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-23T14:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax correct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498232#M72507</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
1.
proc sort data=ccm_base_cust_inf_m(keep becif_custid cert_id_18)
2.
	out=ccm_base_cust_inf_m;
	where cert_id_18 ne "";
	by cert_id_18;

3.
proc sort data=prom_cust_inf out=(rename=(id=cert_id_18));
	by id;

4.
data prom_cust_inf_1;
5.
	merge prom_cust_inf(in=a)
		ccm_base_acct_inf_m(in=b);
6.
	by id;
	if a;
	length base_city $20.;
	base_city=input(base_city,$city.);

7.
%let city=%str(NY,SH,TK);

8.
proc summary data=prom_cust_inf_1 nway;
9.
	by base_city;
10.
	var response_flag;
	out=stat_city_sum(drop=_type_) sum;
run&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Sep 2018 14:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498232#M72507</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2018-09-23T14:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax correct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498234#M72508</link>
      <description>&lt;P&gt;That is it, does it work now?&lt;/P&gt;&lt;P&gt;Happy data mining&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 14:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498234#M72508</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-23T14:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax correct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498243#M72510</link>
      <description>Hi:&lt;BR /&gt;  You have the perfect opportunity here to use the SAS error messages in the log to teach you what is incorrect in the code.&lt;BR /&gt;&lt;BR /&gt;  You've supplied code, but you have not supplied data. If you took the numbers out of your code and just submitted the code, the SAS log would tell you where your errors were. Then, if you started from the top of the log and resolved each one, you would learn, for yourself, whether anything was wrong in the code.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 23 Sep 2018 15:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498243#M72510</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-09-23T15:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax correct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498296#M72518</link>
      <description>there are many mistake in the answer,right?</description>
      <pubDate>Mon, 24 Sep 2018 07:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-syntax-correct/m-p/498296#M72518</guid>
      <dc:creator>ccnky123</dc:creator>
      <dc:date>2018-09-24T07:24:45Z</dc:date>
    </item>
  </channel>
</rss>

