<?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: problem in getting the output in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/problem-in-getting-the-output/m-p/294948#M1044</link>
    <description>&lt;P&gt;It will help if you post your log using the box provided from the "run" icon in the menu bar. It will preserve most of the text formatting and show the underline of the offending code. See this for an example of an error message from the log&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;2115  proc means data=work.meanstest stackods n sum mean;
                                     --------
                                     22
                                     202
ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALPHA, CHARTYPE, CLASSDATA,
              CLM, COMPLETETYPES, CSS, CV, DATA, DESCEND, DESCENDING, DESCENDTYPES, EXCLNPWGT,
              EXCLNPWGTS, EXCLUSIVE, FW, IDMIN, KURTOSIS, LCLM, MAX, MAXDEC, MEAN, MEDIAN, MIN,
              MISSING, MODE, N, NDEC, NMISS, NOLABELS, NONOBS, NOPRINT, NOTHREADS, NOTRAP, NWAY,
              ORDER, P1, P10, P25, P5, P50, P75, P90, P95, P99, PCTLDEF, PRINT, PRINTALL,
              PRINTALLTYPES, PRINTIDS, PRINTIDVARS, PROBT, Q1, Q3, QMARKERS, QMETHOD, QNTLDEF,
              QRANGE, RANGE, SKEWNESS, STDDEV, STDERR, SUM, SUMSIZE, SUMWGT, T, THREADS, UCLM,
              USS, VAR, VARDEF.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also I am VERY puzzled by your coding style of breaking if then do into 3 code lines but then attempting to combine two statements on a single line. Possibly if you had posted the code using the "run" icon there was formatting that would have helped make the poste readable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2016 20:44:54 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-08-29T20:44:54Z</dc:date>
    <item>
      <title>problem in getting the output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-getting-the-output/m-p/294712#M1037</link>
      <description>&lt;P&gt;data s3;&lt;BR /&gt;set t2;&lt;BR /&gt;by type;&lt;BR /&gt;if first.type&lt;BR /&gt;then&lt;BR /&gt;do;&lt;BR /&gt;mc=0,fc=0;&lt;/P&gt;&lt;P&gt;if gender=M&lt;BR /&gt;then&lt;BR /&gt;mc+1;&lt;BR /&gt;else&lt;BR /&gt;fc+1;&lt;BR /&gt;end;&lt;BR /&gt;if last.type&lt;BR /&gt;then output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;55&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;56&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;57 data s3;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;58 set t2;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;59 by type;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;60 if first.type&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;61 then&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;62 do;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63 mc=0,fc=0;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;388&lt;/DIV&gt;&lt;DIV class="sasError"&gt;200&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 if gender=M&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;66 then&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;67 mc+1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;68 else&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;69 fc+1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70 end;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71 if last.type&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72 then output;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The data set WORK.S3 may be incomplete. When this step was stopped there were 0 observations and 6 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Data set WORK.S3 was not replaced because this step was stopped.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;86&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Aug 2016 07:33:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-getting-the-output/m-p/294712#M1037</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-08-29T07:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting the output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-getting-the-output/m-p/294714#M1038</link>
      <description>&lt;P&gt;Can you be more descriptive about your problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like what is your input, what is expected output and what problem are you facing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do share sas code that you are using.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 07:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-getting-the-output/m-p/294714#M1038</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-08-29T07:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting the output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-getting-the-output/m-p/294717#M1039</link>
      <description>&lt;P&gt;data a1;&lt;BR /&gt;input household $ type $;&lt;BR /&gt;datalines;&lt;BR /&gt;A Savings&lt;BR /&gt;A Pension&lt;BR /&gt;A Investment&lt;BR /&gt;B Term&lt;BR /&gt;B Pension&lt;BR /&gt;B Investment&lt;BR /&gt;C term&lt;BR /&gt;C Pension&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data a2;&lt;BR /&gt;input household $ customer $ gender $;&lt;BR /&gt;datalines;&lt;BR /&gt;A Ken M&lt;BR /&gt;A Seni F&lt;BR /&gt;B Fab M&lt;BR /&gt;C Ron M&lt;BR /&gt;C Mary F&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;create table t2&lt;BR /&gt;as select a.household,a.type ,&lt;BR /&gt;b.gender&lt;BR /&gt;from a1 as a,a2 as b&lt;BR /&gt;where a.household=b.household;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sort data=t2;&lt;BR /&gt;by type;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data s3;&lt;BR /&gt;set t2;&lt;BR /&gt;by type;&lt;BR /&gt;if first.type&lt;BR /&gt;then&lt;BR /&gt;do;&lt;BR /&gt;mc=0,fc=0;&lt;/P&gt;&lt;P&gt;if gender=M&lt;BR /&gt;then&lt;BR /&gt;mc+1;&lt;BR /&gt;else&lt;BR /&gt;fc+1;&lt;BR /&gt;end;&lt;BR /&gt;if last.type&lt;BR /&gt;then output;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table t3 as&lt;BR /&gt;select&amp;nbsp; type_of_product,gender&lt;BR /&gt;from t2;&lt;BR /&gt;when&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have 2 tables a1 and a2,&lt;/P&gt;&lt;P&gt;i have merged them and now i want the count no of males and females based on the type.&lt;/P&gt;&lt;P&gt;nd based on that decide whether they are male biased or female biased for each type.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 07:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-getting-the-output/m-p/294717#M1039</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-08-29T07:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting the output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-getting-the-output/m-p/294719#M1040</link>
      <description>&lt;P&gt;This "statement" is the culprit:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;mc=0,fc=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I guess you wanted&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;mc=0;
fc=0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2016 08:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-getting-the-output/m-p/294719#M1040</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-29T08:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem in getting the output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-getting-the-output/m-p/294948#M1044</link>
      <description>&lt;P&gt;It will help if you post your log using the box provided from the "run" icon in the menu bar. It will preserve most of the text formatting and show the underline of the offending code. See this for an example of an error message from the log&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;2115  proc means data=work.meanstest stackods n sum mean;
                                     --------
                                     22
                                     202
ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALPHA, CHARTYPE, CLASSDATA,
              CLM, COMPLETETYPES, CSS, CV, DATA, DESCEND, DESCENDING, DESCENDTYPES, EXCLNPWGT,
              EXCLNPWGTS, EXCLUSIVE, FW, IDMIN, KURTOSIS, LCLM, MAX, MAXDEC, MEAN, MEDIAN, MIN,
              MISSING, MODE, N, NDEC, NMISS, NOLABELS, NONOBS, NOPRINT, NOTHREADS, NOTRAP, NWAY,
              ORDER, P1, P10, P25, P5, P50, P75, P90, P95, P99, PCTLDEF, PRINT, PRINTALL,
              PRINTALLTYPES, PRINTIDS, PRINTIDVARS, PROBT, Q1, Q3, QMARKERS, QMETHOD, QNTLDEF,
              QRANGE, RANGE, SKEWNESS, STDDEV, STDERR, SUM, SUMSIZE, SUMWGT, T, THREADS, UCLM,
              USS, VAR, VARDEF.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also I am VERY puzzled by your coding style of breaking if then do into 3 code lines but then attempting to combine two statements on a single line. Possibly if you had posted the code using the "run" icon there was formatting that would have helped make the poste readable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 20:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-getting-the-output/m-p/294948#M1044</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-29T20:44:54Z</dc:date>
    </item>
  </channel>
</rss>

