<?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: Trying to figure out why I am getting these errors in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/836102#M36016</link>
    <description>&lt;P&gt;Just to make sure I am doing this right, before this code should I have written something create the set?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2022 15:00:22 GMT</pubDate>
    <dc:creator>squeakums</dc:creator>
    <dc:date>2022-09-30T15:00:22Z</dc:date>
    <item>
      <title>Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835909#M35991</link>
      <description>&lt;P&gt;Why am I getting these errors please?&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ',', ANSIMISS, CROSS, EXCEPT, FULL, GROUP, HAVING, INNER, INTERSECT,&lt;BR /&gt;JOIN, LEFT, NATURAL, NOMISS, ORDER, OUTER, RIGHT, UNION, WHERE.&lt;/P&gt;&lt;P&gt;ERROR 201-322: The option is not recognized and will be ignored.&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Proc Sql;
Create Table A As
Select distinct
A.'ID'n,
B.'ITA ID'n,
B.'Start Date'n,
B.'Due Date'n,
B.'ITA Status'n,
B.'ITA Completion Date'n

From DETAILS092222 as A 
inner join ITA as B
on A.'ID'n = B.'ID'n
Order by 1 desc
;
Quit;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 18:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835909#M35991</guid>
      <dc:creator>squeakums</dc:creator>
      <dc:date>2022-09-29T18:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835912#M35992</link>
      <description>&lt;P&gt;Please do not post just the ERROR messages, post the&amp;nbsp;&lt;EM&gt;complete&lt;/EM&gt; log of the step(s) causing the ERRORs, including all code and messages.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 18:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835912#M35992</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-09-29T18:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835913#M35993</link>
      <description>&lt;P&gt;I'm sorry that was my very first post on this site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this suffice?&lt;/P&gt;&lt;PRE&gt;33         Proc Sql;
34         Create Table A As
35         Select distinct
36         A.'ID'n,
37         B.'ITA ID'n,
38         B.'Open Date'n,
39         B.'Due Date'n,
40         B.'ITA Status'n,
41         B.'ITA Completion Date'n
42         
43         From DETAILS092222 as A
                                      __
                                      22
2                                                          The SAS System                         12:28 Thursday, September 29, 2022

                                      201
ERROR 22-322: Syntax error, expecting one of the following: ;, ',', ANSIMISS, CROSS, EXCEPT, FULL, GROUP, HAVING, INNER, INTERSECT, 
              JOIN, LEFT, NATURAL, NOMISS, ORDER, OUTER, RIGHT, UNION, WHERE.  

ERROR 201-322: The option is not recognized and will be ignored.

44         inner join ita as B
45         on A.'Id'n = B.'ID'n
46         Order by 1 desc
47         ;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Sep 2022 18:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835913#M35993</guid>
      <dc:creator>squeakums</dc:creator>
      <dc:date>2022-09-29T18:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835917#M35994</link>
      <description>&lt;P&gt;The ERROR pointer points to white space in the code, so I guess you have some invalid non-displayable character there. Remove all blank space which is not needed.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 18:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835917#M35994</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-09-29T18:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835919#M35995</link>
      <description>&lt;P&gt;Okay, so I think the space issue was with one of the names.&lt;/P&gt;&lt;P&gt;So, I reran the code with the fix and now I'm getting this error&lt;/P&gt;&lt;PRE&gt;41         Order by 1 desc
42         ;
ERROR: File WORK.DETAILS.DATA does not exist.
ERROR: File WORK.IRA.DATA does not exist.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
43         Quit&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Sep 2022 18:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835919#M35995</guid>
      <dc:creator>squeakums</dc:creator>
      <dc:date>2022-09-29T18:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835924#M35997</link>
      <description>&lt;P&gt;Which simply means that you try to use datasets which do not exist.&lt;/P&gt;
&lt;P&gt;Single-level dataset names point to the non-permanent WORK library, which is deleted when a SAS session ends and newly created when a new SAS session starts. So you need to re-run the code which creates them when you start a new SAS session.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 19:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835924#M35997</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-09-29T19:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835926#M35998</link>
      <description>&lt;P&gt;You need to have already created datasets DETAILS and IRA prior to your SQL query. Did you? In your earlier posted code they are named differently.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 19:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835926#M35998</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-09-29T19:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835949#M35999</link>
      <description>&lt;P&gt;Yes, I imported them prior. I had changed the names because I didn't want to display the real names.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 20:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/835949#M35999</guid>
      <dc:creator>squeakums</dc:creator>
      <dc:date>2022-09-29T20:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/836102#M36016</link>
      <description>&lt;P&gt;Just to make sure I am doing this right, before this code should I have written something create the set?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 15:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/836102#M36016</guid>
      <dc:creator>squeakums</dc:creator>
      <dc:date>2022-09-30T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/836104#M36017</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/435197"&gt;@squeakums&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, I imported them prior. I had changed the names because I didn't want to display the real names.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If your variable names contain information that you deem to sensitive to share then it is very likely that your data structure is wrong. Data belongs in values of variables, not in the names of the variables. Plus that sort of "structure" typically means that code gets hard to maintain as every time you add a new "value" into the variable names that all of the code using that set has to be updated to account for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A brief example&lt;/P&gt;
&lt;P&gt;Suppose you have a data set that has City names to indicate the place where some value, such as home sale prices are stored, i.e. it looks like:&lt;/P&gt;
&lt;P&gt;Date Boston Chicago Denver Dallas&lt;/P&gt;
&lt;P&gt;When you get new values any code used to do things like determine the average price of homes across those cities needs to include a new variable for EACH city.&lt;/P&gt;
&lt;P&gt;If however you have your data as&lt;/P&gt;
&lt;P&gt;Date CityName HomePrice&lt;/P&gt;
&lt;P&gt;you get two things quickly: To get the average of homeprices you just use the one variable HomePrice. Second less obvious is that when you combine data from different periods you don't run into issues.&lt;/P&gt;
&lt;P&gt;Less obvious to new SAS users, you can get summaries at the CityName level by using BY group processing or as a Class variable.&lt;/P&gt;
&lt;P&gt;Another is the name of the HomePrice variable is easy to follow as to what it measures or could be used for. Not obvious with values under Boston.&lt;/P&gt;
&lt;P&gt;Another consideration is if you have a data set with information like Average Household income if your data is the same&lt;/P&gt;
&lt;P&gt;Date Boston Chicago Denver Dallas&lt;/P&gt;
&lt;P&gt;with the values for the City the Income then combining the two bits to do something like Income / Home price analysis is going to be very&lt;/P&gt;
&lt;P&gt;complicated. If the data however is&lt;/P&gt;
&lt;P&gt;Date CityName Income&lt;/P&gt;
&lt;P&gt;then it is easy (barring spelling problems) to combine data on the Date CityName and get a set&lt;/P&gt;
&lt;P&gt;Date CityName HomePrice Income&lt;/P&gt;
&lt;P&gt;and do analysis using the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note the CityName does not "reveal" the areas you may be interested in like variable names of Boston would.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 15:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/836104#M36017</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-30T15:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/836175#M36029</link>
      <description>&lt;P&gt;I have this figured out now -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should have updated to&amp;nbsp;&lt;/P&gt;&lt;P&gt;From FolderName.ITA as A&lt;BR /&gt;inner join FolderName.ID as B&lt;BR /&gt;on A.'Service ID'n = B.'Service ID'n&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ',', ANSIMISS, CROSS, EXCEPT, FULL, GROUP, HAVING, INNER, INTERSECT, 
              JOIN, LEFT, NATURAL, NOMISS, ORDER, OUTER, RIGHT, UNION, WHERE.  

ERROR 201-322: The option is not recognized and will be ignored.

44         inner join ita as B
45         on A.'Id'n = B.'ID'n
46         Order by 1 desc
47         ;&lt;/PRE&gt;&lt;P&gt;I&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 17:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/836175#M36029</guid>
      <dc:creator>squeakums</dc:creator>
      <dc:date>2022-09-30T17:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out why I am getting these errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/836216#M36039</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;complete&lt;/STRONG&gt; log, please. Messages without the code causing them are useless.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 20:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-figure-out-why-I-am-getting-these-errors/m-p/836216#M36039</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-09-30T20:45:31Z</dc:date>
    </item>
  </channel>
</rss>

