<?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: Data is not printing as needed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498587#M132536</link>
    <description>Thanks a lot!!</description>
    <pubDate>Mon, 24 Sep 2018 20:52:41 GMT</pubDate>
    <dc:creator>serakuru1989</dc:creator>
    <dc:date>2018-09-24T20:52:41Z</dc:date>
    <item>
      <title>Data is not printing as needed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498583#M132532</link>
      <description>&lt;P&gt;Data Energyconsm;&lt;BR /&gt;if Windows="N" then do; New Windows=1; OldWindows=0;&lt;BR /&gt;if Windows="O" then do; Old Windows=1; NewWindows=0;&lt;BR /&gt;input Hotel Area NumRooms OccRate EffRooms Windows Energy;&lt;BR /&gt;Datalines;&lt;BR /&gt;1 43.000 420 32.60 136.92 N 8.199053&lt;BR /&gt;2 19.979 215 63.00 135.45 O 6.650887&lt;BR /&gt;3 46.529 273 65.05 177.59 O 7.765729&lt;/P&gt;&lt;P&gt;4 20.962 222 70.50 156.51 N 0.446270&lt;BR /&gt;5 24.212 474 69.70 330.38 N 2.985187&lt;BR /&gt;6 82.200 787 48.97 385.39 O 16.391854&lt;BR /&gt;Proc print data=Energyconsm;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not getting an output i require.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Showing -&amp;nbsp;ERROR 180-322: Statement is not valid or it is used out of proper order. Please Help&lt;/P&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Sep 2018 20:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498583#M132532</guid>
      <dc:creator>serakuru1989</dc:creator>
      <dc:date>2018-09-24T20:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not printing as needed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498585#M132534</link>
      <description>&lt;P&gt;Corrected:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Energyconsm;
input Hotel Area NumRooms OccRate EffRooms  Windows $ Energy;
if Windows="N" then do; NewWindows=1; OldWindows=0;end;
else if Windows="O" then do; OldWindows=1; NewWindows=0;end;
Datalines;
1 43.000 420 32.60 136.92 N 8.199053
2 19.979 215 63.00 135.45 O 6.650887
3 46.529 273 65.05 177.59 O 7.765729
4 20.962 222 70.50 156.51 N 0.446270
5 24.212 474 69.70 330.38 N 2.985187
6 82.200 787 48.97 385.39 O 16.391854
;
Proc print data=Energyconsm;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Sep 2018 20:50:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498585#M132534</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-09-24T20:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not printing as needed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498586#M132535</link>
      <description>&lt;P&gt;There's usually a line number attached to the error. What line is it indicating?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your INPUT is incorrect though - how do you specify a character variable when reading in data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235824"&gt;@serakuru1989&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Data Energyconsm;&lt;BR /&gt;if Windows="N" then do; New Windows=1; OldWindows=0;&lt;BR /&gt;if Windows="O" then do; Old Windows=1; NewWindows=0;&lt;BR /&gt;input Hotel Area NumRooms OccRate EffRooms Windows Energy;&lt;BR /&gt;Datalines;&lt;BR /&gt;1 43.000 420 32.60 136.92 N 8.199053&lt;BR /&gt;2 19.979 215 63.00 135.45 O 6.650887&lt;BR /&gt;3 46.529 273 65.05 177.59 O 7.765729&lt;/P&gt;
&lt;P&gt;4 20.962 222 70.50 156.51 N 0.446270&lt;BR /&gt;5 24.212 474 69.70 330.38 N 2.985187&lt;BR /&gt;6 82.200 787 48.97 385.39 O 16.391854&lt;BR /&gt;Proc print data=Energyconsm;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not getting an output i require.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Showing -&amp;nbsp;ERROR 180-322: Statement is not valid or it is used out of proper order. Please Help&lt;/P&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 20:51:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498586#M132535</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-24T20:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not printing as needed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498587#M132536</link>
      <description>Thanks a lot!!</description>
      <pubDate>Mon, 24 Sep 2018 20:52:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498587#M132536</guid>
      <dc:creator>serakuru1989</dc:creator>
      <dc:date>2018-09-24T20:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not printing as needed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498591#M132537</link>
      <description>&lt;P&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;70&lt;BR /&gt;71 Data Energyconsm;&lt;BR /&gt;72 input Hotel Area NumRooms OccRate EffRooms Windows $ Energy;&lt;BR /&gt;73 if Windows="N" then do; New Windows=1; Old Windows=0; end;&lt;BR /&gt;___ ___&lt;BR /&gt;180 180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;&lt;BR /&gt;74 else if Windows="O" then do; OldWindows=1; NewWindows=0; end;&lt;BR /&gt;75 Datalines;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Data is printing but I am still getting error.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 21:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498591#M132537</guid>
      <dc:creator>serakuru1989</dc:creator>
      <dc:date>2018-09-24T21:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not printing as needed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498592#M132538</link>
      <description>&lt;P&gt;show us the code, log you ran plz&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 21:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498592#M132538</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-09-24T21:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not printing as needed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498594#M132540</link>
      <description>&lt;P&gt;Data Energyconsm;&lt;BR /&gt;input Hotel Area NumRooms OccRate EffRooms Windows $ Energy;&lt;BR /&gt;if Windows="N" then do; New Windows=1; Old Windows=0; end;&lt;BR /&gt;else if Windows="O" then do; OldWindows=1; NewWindows=0; end;&lt;BR /&gt;Datalines;&lt;BR /&gt;1 43.000 420 32.60 136.92 N 8.199053&lt;BR /&gt;2 19.979 215 63.00 135.45 O 6.650887&lt;BR /&gt;3 46.529 273 65.05 177.59 O 7.765729&lt;BR /&gt;4 20.962 222 70.50 156.51 N 0.446270&lt;BR /&gt;5 24.212 474 69.70 330.38 N 2.985187&lt;BR /&gt;6 82.200 787 48.97 385.39 O 16.391854&lt;BR /&gt;7 45.000 325 49.00 159.25 N 9.766150&lt;BR /&gt;8 28.548 199 52.27 104.02 N 3.605958&lt;BR /&gt;9 32.865 359 50.00 179.50 N 3.335242&lt;BR /&gt;10 59.406 503 57.66 290.03 N 12.928614&lt;BR /&gt;11 45.000 416 94.08 391.37 O 8.226040&lt;BR /&gt;12 37.435 418 68.70 287.17 N 6.067471&lt;BR /&gt;13 50.828 347 49.00 170.03 N 7.233905&lt;BR /&gt;14 68.000 455 64.20 292.11 O 11.043565&lt;BR /&gt;15 78.868 511 63.51 324.54 N 10.288695&lt;BR /&gt;16 28.454 219 76.54 167.62 O 3.662090&lt;BR /&gt;17 70.000 501 67.57 338.53 N 11.949033&lt;BR /&gt;18 20.000 197 66.00 130.02 N 0.659653&lt;BR /&gt;19 50.000 318 61.50 195.57 O 10.034180&lt;BR /&gt;;&lt;BR /&gt;Proc print data=Energyconsm;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 21:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498594#M132540</guid>
      <dc:creator>serakuru1989</dc:creator>
      <dc:date>2018-09-24T21:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not printing as needed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498597#M132542</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Energyconsm;
input Hotel Area NumRooms OccRate EffRooms Windows $ Energy;
if Windows="N" then do; NewWindows=1; OldWindows=0; end;/*notice the correction here plz in varnames*/
else if Windows="O" then do; OldWindows=1; NewWindows=0; end;
Datalines;
1 43.000 420 32.60 136.92 N 8.199053
2 19.979 215 63.00 135.45 O 6.650887
3 46.529 273 65.05 177.59 O 7.765729
4 20.962 222 70.50 156.51 N 0.446270
5 24.212 474 69.70 330.38 N 2.985187
6 82.200 787 48.97 385.39 O 16.391854
7 45.000 325 49.00 159.25 N 9.766150
8 28.548 199 52.27 104.02 N 3.605958
9 32.865 359 50.00 179.50 N 3.335242
10 59.406 503 57.66 290.03 N 12.928614
11 45.000 416 94.08 391.37 O 8.226040
12 37.435 418 68.70 287.17 N 6.067471
13 50.828 347 49.00 170.03 N 7.233905
14 68.000 455 64.20 292.11 O 11.043565
15 78.868 511 63.51 324.54 N 10.288695
16 28.454 219 76.54 167.62 O 3.662090
17 70.000 501 67.57 338.53 N 11.949033
18 20.000 197 66.00 130.02 N 0.659653
19 50.000 318 61.50 195.57 O 10.034180
;
Proc print data=Energyconsm;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please review when you copy paste from the forum word by word so you don't make any mistakes&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 21:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498597#M132542</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-09-24T21:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not printing as needed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498598#M132543</link>
      <description>&lt;P&gt;You are a life saver.Thanks a lot!!&lt;/P&gt;&lt;P&gt;I am doing this first time in my life and taking so much time to get an output without error.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 21:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-is-not-printing-as-needed/m-p/498598#M132543</guid>
      <dc:creator>serakuru1989</dc:creator>
      <dc:date>2018-09-24T21:27:04Z</dc:date>
    </item>
  </channel>
</rss>

