<?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: Multiple Output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multiple-Output/m-p/574803#M162478</link>
    <description>&lt;P&gt;Here are examples of other ways.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will point out the general advice though: 99% of the time this is a bad idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2015/01/26/how-to-split-one-data-set-into-many/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sasdummy/2015/01/26/how-to-split-one-data-set-into-many/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Split_Data_into_Subsets" target="_blank" rel="noopener"&gt;http://www.sascommunity.org/wiki/Split_Data_into_Subsets&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Read to the bottom of the second link to find other options including call execute, macros and such.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/162015"&gt;@vincentgoh88&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to create a looping for code below if I wish to loop 10 times and output 10 times?Besides using data step, is there any other simple method using proc?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data S1 S2 ... S10;&lt;/P&gt;
&lt;P&gt;set set0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if book = 'A1' then output A1;&lt;/P&gt;
&lt;P&gt;else if book 'A2' then output A2;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;else if book 'A10' then output A10;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 21:27:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-07-18T21:27:28Z</dc:date>
    <item>
      <title>Multiple Output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-Output/m-p/574799#M162474</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to create a looping for code below if I wish to loop 10 times and output 10 times?Besides using data step, is there any other simple method using proc?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data S1 S2 ... S10;&lt;/P&gt;&lt;P&gt;set set0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if book = 'A1' then output A1;&lt;/P&gt;&lt;P&gt;else if book 'A2' then output A2;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;else if book 'A10' then output A10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 21:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-Output/m-p/574799#M162474</guid>
      <dc:creator>vincentgoh88</dc:creator>
      <dc:date>2019-07-18T21:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-Output/m-p/574800#M162475</link>
      <description>&lt;P&gt;The Data Step sounds like the ideal tool for this job so why do you want to do it another way?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 21:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-Output/m-p/574800#M162475</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-07-18T21:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-Output/m-p/574801#M162476</link>
      <description>&lt;P&gt;I wish to learn other way if there is any.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 21:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-Output/m-p/574801#M162476</guid>
      <dc:creator>vincentgoh88</dc:creator>
      <dc:date>2019-07-18T21:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-Output/m-p/574803#M162478</link>
      <description>&lt;P&gt;Here are examples of other ways.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will point out the general advice though: 99% of the time this is a bad idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2015/01/26/how-to-split-one-data-set-into-many/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sasdummy/2015/01/26/how-to-split-one-data-set-into-many/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Split_Data_into_Subsets" target="_blank" rel="noopener"&gt;http://www.sascommunity.org/wiki/Split_Data_into_Subsets&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Read to the bottom of the second link to find other options including call execute, macros and such.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/162015"&gt;@vincentgoh88&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to create a looping for code below if I wish to loop 10 times and output 10 times?Besides using data step, is there any other simple method using proc?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data S1 S2 ... S10;&lt;/P&gt;
&lt;P&gt;set set0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if book = 'A1' then output A1;&lt;/P&gt;
&lt;P&gt;else if book 'A2' then output A2;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;else if book 'A10' then output A10;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 21:27:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-Output/m-p/574803#M162478</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-18T21:27:28Z</dc:date>
    </item>
  </channel>
</rss>

