<?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: When I run my sas code line 24 of the code is not being coutned in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/When-I-run-my-sas-code-line-24-of-the-code-is-not-being-coutned/m-p/858413#M339157</link>
    <description>&lt;P&gt;Please share your code as text via the running man icon&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1676163185046.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80336iD09E20042EC86581/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_1-1676163185046.png" alt="Patrick_1-1676163185046.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and not a screen-shot so we can actually run it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1676163158489.png" style="width: 539px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80335iF73949D6502D3723/image-dimensions/539x23?v=v2" width="539" height="23" role="button" title="Patrick_0-1676163158489.png" alt="Patrick_0-1676163158489.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Add TRUNCOVER to you datalines statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_2-1676163259535.png" style="width: 329px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80337i8F093838C2E1D976/image-dimensions/329x23?v=v2" width="329" height="23" role="button" title="Patrick_2-1676163259535.png" alt="Patrick_2-1676163259535.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And for this one actually running your code would make debugging much easier than looking at your screen-shot.&lt;/P&gt;</description>
    <pubDate>Sun, 12 Feb 2023 00:57:39 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2023-02-12T00:57:39Z</dc:date>
    <item>
      <title>When I run my sas code line 24 of the code is not being coutned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-run-my-sas-code-line-24-of-the-code-is-not-being-coutned/m-p/858409#M339156</link>
      <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;whenever I run my SAS code it appears to only provide me 29 observations instead of all 30. Line 24 is the code that is not being counted for and I'm not sure why. This missing line is providing me with output data that is not correct. Thoughts anyone?&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-02-11 at 7.42.50 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80333iFDDDFC6436BA0EBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-02-11 at 7.42.50 PM.png" alt="Screen Shot 2023-02-11 at 7.42.50 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-02-11 at 7.43.45 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80334iAECA77A1511AD2C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-02-11 at 7.43.45 PM.png" alt="Screen Shot 2023-02-11 at 7.43.45 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 00:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-run-my-sas-code-line-24-of-the-code-is-not-being-coutned/m-p/858409#M339156</guid>
      <dc:creator>dylannn</dc:creator>
      <dc:date>2023-02-12T00:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: When I run my sas code line 24 of the code is not being coutned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-run-my-sas-code-line-24-of-the-code-is-not-being-coutned/m-p/858413#M339157</link>
      <description>&lt;P&gt;Please share your code as text via the running man icon&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1676163185046.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80336iD09E20042EC86581/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_1-1676163185046.png" alt="Patrick_1-1676163185046.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and not a screen-shot so we can actually run it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1676163158489.png" style="width: 539px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80335iF73949D6502D3723/image-dimensions/539x23?v=v2" width="539" height="23" role="button" title="Patrick_0-1676163158489.png" alt="Patrick_0-1676163158489.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Add TRUNCOVER to you datalines statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_2-1676163259535.png" style="width: 329px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80337i8F093838C2E1D976/image-dimensions/329x23?v=v2" width="329" height="23" role="button" title="Patrick_2-1676163259535.png" alt="Patrick_2-1676163259535.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And for this one actually running your code would make debugging much easier than looking at your screen-shot.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 00:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-run-my-sas-code-line-24-of-the-code-is-not-being-coutned/m-p/858413#M339157</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-12T00:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: When I run my sas code line 24 of the code is not being coutned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-run-my-sas-code-line-24-of-the-code-is-not-being-coutned/m-p/858414#M339158</link>
      <description>&lt;PRE&gt;please see below &lt;BR /&gt;&lt;BR /&gt;Libname Lifechar '/home/u61727912/sasuser.v94/dylan mod 1' ;&lt;BR /&gt;Run ;&lt;BR /&gt;&lt;BR /&gt;Data lifechar;&lt;BR /&gt;infile datalines;&lt;BR /&gt;input age sex $ race $ marital $ educ $ health $ diet $ activity $ smoker $ bmi bmi2 satis $ ;&lt;BR /&gt;If age &amp;gt; 65 then agedef = 'elder';&lt;BR /&gt;else agedef = 'young' ;&lt;BR /&gt;datalines ;&lt;BR /&gt;52 m white married college4yearsormore good good notveryactive never 30.0 27.43 verysat&lt;BR /&gt;61 m black married grade12orged good verygood veryactive never 26.6 27.98 somewhatsat&lt;BR /&gt;. f other married grades9through11 excellent good veryactive never 19.5 19.01 verysat&lt;BR /&gt;30 m black married college4yearsormore excellent excellent veryactive never 22.8 20.92 somewhatsat&lt;BR /&gt;50 m white memberofunmarriedcouple college4yearsormore verygood fair veryactive former 26.8 25.62 somewhatsat&lt;BR /&gt;52 f black nevermarried grade12orged good excellent notactiveatall . . . verysat&lt;BR /&gt;28 f black nevermarried college1to3years excellent fair somewhatactive never 22.7 24.56 verydissat&lt;BR /&gt;62 m white nevermarried college4yearsormore verygood verygood somewhatactive never 28.7 25.38 verysat&lt;BR /&gt;18 f black nevermarried grade12orged excellent fair somewhatactive never 27.4 26.81 verysat&lt;BR /&gt;48 f black married college4yearsormore fair good somewhatactive former 33.8 31.92 verysat&lt;BR /&gt;66 m white divorce grade12orged good good somewhatactive former 26.6 24.27 verysat&lt;BR /&gt;75 f white nevermarried college4yearsormore good fair somewhatactive former . . verysat&lt;BR /&gt;64 m white married college4yearsormore verygood excellent somewhatactive . 25.8 27.80 verydissat&lt;BR /&gt;42 m white nevermarried college4yearsormore verygood verygood veryactive never 27.3 28.58&lt;BR /&gt;35 m white married college4yearsormore verygood verygood somewhatactive never 29.6 29.63 somewhatdissat &lt;BR /&gt;23 m white nevermarried college4yearsormore verygood verygood somewhatactive never . . somewhatsat&lt;BR /&gt;50 m white nevermarried college4yearsormore good verygood veryactive never 24.2 22.89 verysat&lt;BR /&gt;46 f white memberofunmarriedcouple college4yearsormore good verygood somewhatactive never 23.2 23.01 somewhatsat&lt;BR /&gt;43 f white married college4yearsormore verygood good somewhatactive former . . somewhatdissat&lt;BR /&gt;45 f black nevermarried college4yearsormore verygood good somewhatactive never 20.7 18.30 verysat&lt;BR /&gt;84 f hispanic separated grade1through8 fair fair notveryactive never 22.1 22.75 verydissat&lt;BR /&gt;36 f hispanic memberofunmarriedcouple grades1through8 good fair somewhatactive never 31.4 31.14 verysat&lt;BR /&gt;85 m white married college4yearsormore fair fair somewhatactive never 27.9 26.77 verysat&lt;BR /&gt;60 f api widowed grade12orged fair fair notveryactive never 24.8 26.18 verydissat&lt;BR /&gt;50 m white memberofunmarriedcouple college4yearsormore verygood good notveryactive former 20.3 20.06 verysat&lt;BR /&gt;45 m hispanic nevermarried college4yearsormore fair fair somewhatactive never 39.3 37.46 verysat&lt;BR /&gt;77 f black widowed college1to3years verygood verygood veryactive former 31.6 29.55 verysat&lt;BR /&gt;55 f white divorce college4yearsormore verygood verygood veryactive former 20.6 22.85 verysat&lt;BR /&gt;49 f black nevermarried grades9through11 good verygood somewhatactive current 29.7 29.53 somewhatsat&lt;BR /&gt;59 f hispanic divorce college4yearsormore good good notveryactive former 33.3 31.68 verysat&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;proc print;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Feb 2023 01:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-run-my-sas-code-line-24-of-the-code-is-not-being-coutned/m-p/858414#M339158</guid>
      <dc:creator>dylannn</dc:creator>
      <dc:date>2023-02-12T01:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: When I run my sas code line 24 of the code is not being coutned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-run-my-sas-code-line-24-of-the-code-is-not-being-coutned/m-p/858415#M339159</link>
      <description>&lt;P&gt;Look very closely at this line&lt;/P&gt;
&lt;PRE&gt;42 m white nevermarried college4yearsormore verygood verygood veryactive never 27.3 28.58
&lt;/PRE&gt;
&lt;P&gt;Count how many spaces between values there are.&lt;/P&gt;
&lt;P&gt;Your INPUT statement is reading 12 variables. Which means that there needs to be 11 spaces between the values read.&lt;/P&gt;
&lt;P&gt;This line is the source of the "NOTE: SAS went to a new line when INPUT statement reached past the end of a line." When you look at your data set you will see that the Satis variable has the value of 35 read from the age of the next (and since that line was used for this one there is no data for that record as the INPUT statement then reads the line after that.&lt;/P&gt;
&lt;P&gt;The Truncover option on the INFILE will stop reading when the items on the input statement exceed the values of the datalines read. So is one way and will have SATIS as missing. Or provide a value or . to read as missing.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 01:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-run-my-sas-code-line-24-of-the-code-is-not-being-coutned/m-p/858415#M339159</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-02-12T01:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: When I run my sas code line 24 of the code is not being coutned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-I-run-my-sas-code-line-24-of-the-code-is-not-being-coutned/m-p/858418#M339160</link>
      <description>&lt;P&gt;THank you so much!!!!!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 01:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-I-run-my-sas-code-line-24-of-the-code-is-not-being-coutned/m-p/858418#M339160</guid>
      <dc:creator>dylannn</dc:creator>
      <dc:date>2023-02-12T01:48:35Z</dc:date>
    </item>
  </channel>
</rss>

