<?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: Base SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427580#M105493</link>
    <description>yes, can run it and know the answer, but i m not able to understand how this output came. I want to understand the procedure. Anyway output is given below -&lt;BR /&gt;&lt;BR /&gt;x y z&lt;BR /&gt;10 20 .&lt;BR /&gt;10 20 50&lt;BR /&gt;100 20 50&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 14 Jan 2018 23:44:15 GMT</pubDate>
    <dc:creator>Ankur32</dc:creator>
    <dc:date>2018-01-14T23:44:15Z</dc:date>
    <item>
      <title>Explicit output statement - how is this data step working?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427577#M105490</link>
      <description>&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; new;&lt;/P&gt;
&lt;P&gt;x=&lt;STRONG&gt;10&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;y=&lt;STRONG&gt;20&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;output;&lt;/P&gt;
&lt;P&gt;z=&lt;STRONG&gt;50&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;output ;&lt;/P&gt;
&lt;P&gt;x=&lt;STRONG&gt;100&lt;/STRONG&gt; ;&lt;/P&gt;
&lt;P&gt;output ;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what is the output? and how? I am not able to solve this question, can someone help me out?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 16:02:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427577#M105490</guid>
      <dc:creator>Ankur32</dc:creator>
      <dc:date>2018-01-15T16:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427578#M105491</link>
      <description>&lt;P&gt;why not run it and let all of us know&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2018 23:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427578#M105491</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-14T23:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427580#M105493</link>
      <description>yes, can run it and know the answer, but i m not able to understand how this output came. I want to understand the procedure. Anyway output is given below -&lt;BR /&gt;&lt;BR /&gt;x y z&lt;BR /&gt;10 20 .&lt;BR /&gt;10 20 50&lt;BR /&gt;100 20 50&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 14 Jan 2018 23:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427580#M105493</guid>
      <dc:creator>Ankur32</dc:creator>
      <dc:date>2018-01-14T23:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427582#M105495</link>
      <description>&lt;P&gt;Sorry mate!, I am not keen on doing a tutorial. You can forgive me or hate me lol. Anyway, I am sure somebody else will.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19750"&gt;@MichelleHomes&lt;/a&gt;&amp;nbsp;posted brilliant ideas/links to get you(hmm us) started in this link&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Free learning resources&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Free-SAS-Learning-Resources/tac-p/425573/jump-to/first-unread-message#M2625" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Free-SAS-Learning-Resources/tac-p/425573/jump-to/first-unread-message#M2625&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Have fun learning! cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2018 23:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427582#M105495</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-14T23:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427584#M105497</link>
      <description>&lt;P&gt;In the given code you have 3 outputs right then it will give you 3 observations if you have 10 output statements then it will give you 10 observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;firs t&lt;SPAN&gt;output iteration&lt;/SPAN&gt;: x,y have values and z is missing you given output statement so it will print values for x,y and z for missing.&lt;/P&gt;&lt;P&gt;second&lt;SPAN&gt;output iteration&lt;/SPAN&gt;:z have value 50 so it will print z with 50 and you already ave x,y values so in second iteration it will print 10,20 as x,y values&lt;/P&gt;&lt;P&gt;third output iteration: x,y,z contain values but you again assigned with 100 x value over write and y,z values as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;new;&lt;/P&gt;&lt;P&gt;x=&lt;STRONG&gt;10&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;y=&lt;STRONG&gt;20&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;z=&lt;STRONG&gt;50&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;output ;&lt;/P&gt;&lt;P&gt;x=&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;output ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2018 23:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427584#M105497</guid>
      <dc:creator>rajeshalwayswel</dc:creator>
      <dc:date>2018-01-14T23:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427586#M105499</link>
      <description>&lt;P&gt;Thanks very much.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 00:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427586#M105499</guid>
      <dc:creator>Ankur32</dc:creator>
      <dc:date>2018-01-15T00:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427608#M105508</link>
      <description>&lt;P&gt;An output statement does not change any variable values, so the previously set values persist. Only a skip into the next iteration of a data step would set variables to missing.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 06:40:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427608#M105508</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-15T06:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427624#M105514</link>
      <description>&lt;P&gt;If that solved your problem, please mark&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/174522"&gt;@rajeshalwayswel&lt;/a&gt;&amp;nbsp;as the correct answer.&amp;nbsp; For future information, it is a good idea to run things, use tutorials and such like.&amp;nbsp; Your question is very simple and running the code should explain what output you get.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 09:15:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427624#M105514</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-15T09:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427627#M105516</link>
      <description>&lt;P&gt;And by all means, use more descriptive subjects for future posts. &lt;STRONG&gt;Base SAS&lt;/STRONG&gt; in the &lt;STRONG&gt;Base SAS Programming&lt;/STRONG&gt; community is, pardon my wording, not very intelligent.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 09:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427627#M105516</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-15T09:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427737#M105526</link>
      <description>&lt;P&gt;Key ideas:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;explicit OUTPUT&lt;/LI&gt;
&lt;LI&gt;when are variables reset&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;new;&lt;/P&gt;
&lt;P&gt;x=&lt;STRONG&gt;10&lt;/STRONG&gt;; &amp;lt;- sets x to 10&lt;/P&gt;
&lt;P&gt;y=&lt;STRONG&gt;20&lt;/STRONG&gt;; &amp;lt;- sets y to 20&lt;/P&gt;
&lt;P&gt;output; &amp;lt;- outputs record to data set&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;z=&lt;STRONG&gt;50&lt;/STRONG&gt;; &amp;lt;- sets z to 50&lt;/P&gt;
&lt;P&gt;output ; &amp;lt;- outputs record to data set. Since x/y have not been changed they remain the same&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x=&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;;&amp;lt;- sets x to 100.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output ; &amp;lt;- outputs record to data set. Since y/z have not been changed they remain the same&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;; &amp;lt;- data step boundary - all variables are reset but since no other instructions the data step is terminated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that I've modified the subject line of your post to make it more descriptive. There are too many 'BASE SAS' questions.&amp;nbsp;&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/145349"&gt;@Ankur32&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; new;&lt;/P&gt;
&lt;P&gt;x=&lt;STRONG&gt;10&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;y=&lt;STRONG&gt;20&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;output;&lt;/P&gt;
&lt;P&gt;z=&lt;STRONG&gt;50&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;output ;&lt;/P&gt;
&lt;P&gt;x=&lt;STRONG&gt;100&lt;/STRONG&gt; ;&lt;/P&gt;
&lt;P&gt;output ;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what is the output? and how? I am not able to solve this question, can someone help me out?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 16:01:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Explicit-output-statement-how-is-this-data-step-working/m-p/427737#M105526</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-15T16:01:39Z</dc:date>
    </item>
  </channel>
</rss>

