<?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 Data Step Errors in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Data-Step-Errors/m-p/837749#M36181</link>
    <description>&lt;P&gt;Not understanding the errors in this datastep. Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data hw4.bone;
infile "\\apporto.com\dfs\GWU\Users\kennedyhinnant_gwu\Downloads\Assignment 4\bone.txt";
input dob 1-10 dov 11-20 wt $ 21-26 ht 27-30 $ peri $ 31-35 
	  endo $ 35-40 tibia $ 41-44 tanner 45 sex 46;
age = (dov - dob)/365
logperi = log(peri);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=""&gt;71   data hw4.bone;
72   infile "\\apporto.com\dfs\GWU\Users\kennedyhinnant_gwu\Downloads\Assignment 4\bone.txt";
73   input dob 1-10 dov 11-20 wt $ 21-26 ht 27-30 $ peri $ 31-35
                                                  -
                                                  22
ERROR 22-322: Expecting a name.

74         endo $ 35-40 tibia $ 41-44 tanner 45 sex 46;
75   age = (dov - dob)/365
76   logperi = log(peri);
     -------
     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, ^=, |, ||,
              ~=.

77   run;

NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).
      76:15
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set HW4.BONE may be incomplete.  When this step was stopped there were 0
         observations and 11 variables.
WARNING: Data set HW4.BONE was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
      real time           0.15 seconds
      cpu time            0.01 seconds&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 11 Oct 2022 00:17:28 GMT</pubDate>
    <dc:creator>MisterJenn</dc:creator>
    <dc:date>2022-10-11T00:17:28Z</dc:date>
    <item>
      <title>Data Step Errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Data-Step-Errors/m-p/837749#M36181</link>
      <description>&lt;P&gt;Not understanding the errors in this datastep. Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data hw4.bone;
infile "\\apporto.com\dfs\GWU\Users\kennedyhinnant_gwu\Downloads\Assignment 4\bone.txt";
input dob 1-10 dov 11-20 wt $ 21-26 ht 27-30 $ peri $ 31-35 
	  endo $ 35-40 tibia $ 41-44 tanner 45 sex 46;
age = (dov - dob)/365
logperi = log(peri);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=""&gt;71   data hw4.bone;
72   infile "\\apporto.com\dfs\GWU\Users\kennedyhinnant_gwu\Downloads\Assignment 4\bone.txt";
73   input dob 1-10 dov 11-20 wt $ 21-26 ht 27-30 $ peri $ 31-35
                                                  -
                                                  22
ERROR 22-322: Expecting a name.

74         endo $ 35-40 tibia $ 41-44 tanner 45 sex 46;
75   age = (dov - dob)/365
76   logperi = log(peri);
     -------
     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, ^=, |, ||,
              ~=.

77   run;

NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).
      76:15
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set HW4.BONE may be incomplete.  When this step was stopped there were 0
         observations and 11 variables.
WARNING: Data set HW4.BONE was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
      real time           0.15 seconds
      cpu time            0.01 seconds&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Oct 2022 00:17:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Data-Step-Errors/m-p/837749#M36181</guid>
      <dc:creator>MisterJenn</dc:creator>
      <dc:date>2022-10-11T00:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step Errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Data-Step-Errors/m-p/837751#M36182</link>
      <description>&lt;P&gt;The good old missing semicolon:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;age = (dov - dob)/365; * &amp;lt;== Add your semicolon here;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;EDIT: Wrong order in INPUT statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input dob 1-10 dov 11-20 wt $ 21-26 ht $ 27-30  peri $ 31-35&amp;nbsp;endo $ 35-40 tibia $ 41-44 tanner 45 sex 46;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 00:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Data-Step-Errors/m-p/837751#M36182</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-10-11T00:46:45Z</dc:date>
    </item>
  </channel>
</rss>

