<?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: Regarding to OUTPUT statement and SET statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Regarding-to-OUTPUT-statement-and-SET-statement/m-p/791686#M253625</link>
    <description>&lt;P&gt;Are these questions some exam that someone has given you?&lt;/P&gt;
&lt;P&gt;Are they YES/NO, Multiple Choice or open response questions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The OUTPUT statement is allowed:&lt;/P&gt;
&lt;LI-SPOILER&gt;Anywhere in a DATA step.&lt;/LI-SPOILER&gt;
&lt;P&gt;The SET statement is:&lt;/P&gt;
&lt;LI-SPOILER&gt;one of the ways to read in data in a data step.&lt;/LI-SPOILER&gt;
&lt;P&gt;The SORT procedure :&lt;/P&gt;
&lt;LI-SPOILER&gt;Does not support either the SET or OUTPUT statements.&amp;nbsp; To specify the input dataset use the DATA= option on the PROC SORT statement.&amp;nbsp; To specify the output dataset use the OUT= option on the PROC SORT statement.&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jan 2022 02:34:44 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-01-23T02:34:44Z</dc:date>
    <item>
      <title>Regarding to OUTPUT statement and SET statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-to-OUTPUT-statement-and-SET-statement/m-p/791666#M253619</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;Hey everyone,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am thankful for your help and kind cooperation.I really appreciate it.&amp;nbsp; I have some questions,&amp;nbsp; I&amp;nbsp; just wanna make sure if I understand some point in SAS correctly !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First question is&amp;nbsp;&lt;SPAN&gt;The OUTPUT statement is allowed in the DO block?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;for Example,&amp;nbsp;&lt;BR /&gt;IF Type = 'D' THEN DO;&lt;BR /&gt;OUTPUT;&lt;BR /&gt;OUTPUT;&lt;BR /&gt;END;&lt;BR /&gt;ELSE OUTPUT;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Second question is regarding to the SET statement is specifies an input data set in the data step or&amp;nbsp;&lt;/P&gt;&lt;P&gt;in Proc Sort step ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it specifies an input data set in the DATA step&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you on advance for your time,&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 22 Jan 2022 20:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-to-OUTPUT-statement-and-SET-statement/m-p/791666#M253619</guid>
      <dc:creator>Malk020</dc:creator>
      <dc:date>2022-01-22T20:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding to OUTPUT statement and SET statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-to-OUTPUT-statement-and-SET-statement/m-p/791671#M253621</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;First question is The OUTPUT statement is allowed in the DO block?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest way to find out is to try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;The Second question is regarding to the SET statement is specifies an input data set in the data step or&lt;/P&gt;
&lt;P&gt;in Proc Sort step ?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Again, trying it would be faster than posting a question in this community and then waiting for an answer. And probably you'd have the satisfaction of learning the answer rather than being told the answer.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 21:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-to-OUTPUT-statement-and-SET-statement/m-p/791671#M253621</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-22T21:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding to OUTPUT statement and SET statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-to-OUTPUT-statement-and-SET-statement/m-p/791680#M253623</link>
      <description>The OUTPUT statement is allowed in the DO block.&lt;BR /&gt;&lt;BR /&gt;SET statement is specifies an input data set in the data step.&lt;BR /&gt;Not in proc step.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Jan 2022 23:37:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-to-OUTPUT-statement-and-SET-statement/m-p/791680#M253623</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-01-22T23:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding to OUTPUT statement and SET statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-to-OUTPUT-statement-and-SET-statement/m-p/791686#M253625</link>
      <description>&lt;P&gt;Are these questions some exam that someone has given you?&lt;/P&gt;
&lt;P&gt;Are they YES/NO, Multiple Choice or open response questions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The OUTPUT statement is allowed:&lt;/P&gt;
&lt;LI-SPOILER&gt;Anywhere in a DATA step.&lt;/LI-SPOILER&gt;
&lt;P&gt;The SET statement is:&lt;/P&gt;
&lt;LI-SPOILER&gt;one of the ways to read in data in a data step.&lt;/LI-SPOILER&gt;
&lt;P&gt;The SORT procedure :&lt;/P&gt;
&lt;LI-SPOILER&gt;Does not support either the SET or OUTPUT statements.&amp;nbsp; To specify the input dataset use the DATA= option on the PROC SORT statement.&amp;nbsp; To specify the output dataset use the OUT= option on the PROC SORT statement.&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2022 02:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-to-OUTPUT-statement-and-SET-statement/m-p/791686#M253625</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-23T02:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding to OUTPUT statement and SET statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-to-OUTPUT-statement-and-SET-statement/m-p/791709#M253632</link>
      <description>Thank you very much. I appreciate it.</description>
      <pubDate>Sun, 23 Jan 2022 15:43:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-to-OUTPUT-statement-and-SET-statement/m-p/791709#M253632</guid>
      <dc:creator>Malk020</dc:creator>
      <dc:date>2022-01-23T15:43:51Z</dc:date>
    </item>
  </channel>
</rss>

