<?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: how do i correct this? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362195#M85557</link>
    <description>&lt;P&gt;I see an input statement, but I see nothing that could provide data for the input (infile or cards/datalines).&lt;/P&gt;
&lt;P&gt;Then I see several assignments&amp;nbsp;&lt;U&gt;to&lt;/U&gt; variables that were just used in the input statement, but those assignment statements are not properly separated by semicolons, and cause a syntax error message. So I have to repeat &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;'s question: what are you trying to do in this data step? (Hint: your first answer to his question was not helpful at all)&lt;/P&gt;</description>
    <pubDate>Sat, 27 May 2017 16:23:33 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-05-27T16:23:33Z</dc:date>
    <item>
      <title>how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362184#M85552</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1    data credit;
2    input x1-x20;
3    x1 = checking x2 = duration  x3 = history x4 = purpose x5 = amount x6 = savings  x7 = employ x8 = rate  x9 = status
                   --             --           --           --          --
                   22             22           22           22          22
3    x1 = checking x2 = duration  x3 = history x4 = purpose x5 = amount x6 = savings  x7 = employ x8 = rate  x9 = status
                                                                                      --
                                                                                      22
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, (, *, **, +, -, /, ;, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE,
              GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, [, ^=, {, |, ||, ~=.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 May 2017 15:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362184#M85552</guid>
      <dc:creator>ojoseph</dc:creator>
      <dc:date>2017-05-27T15:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362190#M85553</link>
      <description>&lt;P&gt;What are you trying to accomplish? Hard to tell from the code you posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 16:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362190#M85553</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-27T16:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362192#M85554</link>
      <description>&lt;P&gt;i am using proc discim and proc factors to compute german credit datasets.&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 16:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362192#M85554</guid>
      <dc:creator>ojoseph</dc:creator>
      <dc:date>2017-05-27T16:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362193#M85555</link>
      <description>&lt;P&gt;I'll restate my question: what were you trying to accomplish with the code you posted? e.g. I was trying to create a dataset called ZZ that had X records, each with Y variables, that contained the following values: xxx, yyy, zzz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 16:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362193#M85555</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-27T16:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362194#M85556</link>
      <description>&lt;P&gt;i was trying to work on datasets called german credit. it contains 20 x - variables and y response variable called good_bad. my sas procedure are proc discrim and proc factors.&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 16:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362194#M85556</guid>
      <dc:creator>ojoseph</dc:creator>
      <dc:date>2017-05-27T16:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362195#M85557</link>
      <description>&lt;P&gt;I see an input statement, but I see nothing that could provide data for the input (infile or cards/datalines).&lt;/P&gt;
&lt;P&gt;Then I see several assignments&amp;nbsp;&lt;U&gt;to&lt;/U&gt; variables that were just used in the input statement, but those assignment statements are not properly separated by semicolons, and cause a syntax error message. So I have to repeat &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;'s question: what are you trying to do in this data step? (Hint: your first answer to his question was not helpful at all)&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 16:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362195#M85557</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-27T16:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362196#M85558</link>
      <description>&lt;P&gt;Sorry, but in the code you posted there is not the faintest trace of these procedures. Your code just contains a syntactically wrong datastep, the purpose of which is not clear at all.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145964"&gt;@ojoseph&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;i was trying to work on datasets called german credit. it contains 20 x - variables and y response variable called good_bad. my sas procedure are proc discrim and proc factors.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So, are you trying to manipulate data that is already present in a SAS dataset, or are you trying to read external (non-SAS) data into a dataset for further processing?&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 16:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362196#M85558</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-27T16:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362199#M85559</link>
      <description>tying to manipulate external data into a dataset for further processing.</description>
      <pubDate>Sat, 27 May 2017 16:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362199#M85559</guid>
      <dc:creator>ojoseph</dc:creator>
      <dc:date>2017-05-27T16:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362206#M85560</link>
      <description>&lt;P&gt;Please seep the following links for video tutorials for basic tasks, and the free programming course.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're not a programmer consider using the tasks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Support.sas.com/training/tutorial&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 16:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362206#M85560</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-27T16:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362211#M85561</link>
      <description>&lt;P&gt;What format is your source data? Is it a text file, like a CSV or other delimited file?&lt;/P&gt;
&lt;P&gt;Looks like you might be trying to read variables using dummy names like X1,X2 etc and then rename to to more meaningful names.&lt;/P&gt;
&lt;P&gt;If you want to rename the use the RENAME statement (or dataset option).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rename
  x1 = checking
  x2 = duration
  x3 = history
  x4 = purpose
  x5 = amount
  x6 = savings
  x7 = employ
  x8 = rate
  x9 = status
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or better just read the variable using the names you want to begin with.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
  infile 'myfile.csv' dsd truncover firstobs=2;
  input checking duration history purpose amount savings
        employ rate status
  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 May 2017 17:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362211#M85561</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-05-27T17:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362216#M85563</link>
      <description>&lt;P&gt;It is also very important to know your environment. Are you using SAS University Edition, or a licensed SAS installation? If it is the latter, is it single machine, or client/server? And which operating system(s) is/are involved?&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 17:44:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362216#M85563</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-27T17:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: how do i correct this?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362219#M85565</link>
      <description>&lt;P&gt;If you just want to make your output easier to read then perhaps you just need to add a LABEL statement to your PROC call?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc discrim data=german_credit;
  var x1-x20 ;
  label x1='Checking' x2='Duration' .... ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 May 2017 18:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-i-correct-this/m-p/362219#M85565</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-05-27T18:01:42Z</dc:date>
    </item>
  </channel>
</rss>

