<?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: Set a; set b; minimal record number, not applicable? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58270#M12663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or most instructive, try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data b;&lt;/P&gt;&lt;P&gt;input x 1. z $2.;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 F&lt;/P&gt;&lt;P&gt;3 R&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;data combo;&lt;/P&gt;&lt;P&gt;put "Before " _n_ (_all_) (=);&lt;/P&gt;&lt;P&gt;if not endOfB then set b end=endOfB;&lt;/P&gt;&lt;P&gt;put "After " _n_ (_all_) (=);&lt;/P&gt;&lt;P&gt;if _n_ &amp;gt; 5 then stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Intricate...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Apr 2012 16:25:04 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2012-04-08T16:25:04Z</dc:date>
    <item>
      <title>Set a; set b; minimal record number, not applicable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58268#M12661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 12pt; margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;Should number of records in combo be 2 rather than 3? &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: 12pt; margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;Why _N_=1 make the minimal record rule not applicable?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: 12pt; margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; x &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; y &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;$2.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;datalines&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% #ffffc0;"&gt;1 A&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% #ffffc0;"&gt;5 T&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; b;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; x &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;1.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; z &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;$2.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;datalines&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% #ffffc0;"&gt;1 F&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% #ffffc0;"&gt;3 R&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% #ffffc0;"&gt;2 G&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; combo;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; _N_=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt; b;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 15:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58268#M12661</guid>
      <dc:creator>ZRick</dc:creator>
      <dc:date>2012-04-08T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set a; set b; minimal record number, not applicable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58269#M12662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even more surprizing if dataset a contains only one observation. &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;To help understand , try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; combo;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;put _n_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; b;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;and then change 1 for 0. Trying this, I conclude that the datastep stops iterating as soon as one of the set or input statements hits an end of file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;PG&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 15:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58269#M12662</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-08T15:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set a; set b; minimal record number, not applicable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58270#M12663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or most instructive, try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data b;&lt;/P&gt;&lt;P&gt;input x 1. z $2.;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 F&lt;/P&gt;&lt;P&gt;3 R&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;data combo;&lt;/P&gt;&lt;P&gt;put "Before " _n_ (_all_) (=);&lt;/P&gt;&lt;P&gt;if not endOfB then set b end=endOfB;&lt;/P&gt;&lt;P&gt;put "After " _n_ (_all_) (=);&lt;/P&gt;&lt;P&gt;if _n_ &amp;gt; 5 then stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Intricate...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 16:25:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58270#M12663</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-08T16:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set a; set b; minimal record number, not applicable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58271#M12664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data combo;&lt;/P&gt;&lt;P&gt;if _N_=1 then set a;&lt;/P&gt;&lt;P&gt;set b;&lt;/P&gt;&lt;P&gt;run;proc print;run;&lt;/P&gt;&lt;P&gt;Result is :&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Print: Data Set WORK.COMBO"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH class="r rowheader" scope="row"&gt;&lt;/TH&gt;&lt;TD class="r data"&gt;1&lt;/TD&gt;&lt;TD class="l data"&gt;A&lt;/TD&gt;&lt;TD class="l data"&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="r rowheader" scope="row"&gt;&lt;/TH&gt;&lt;TD class="r data"&gt;3&lt;/TD&gt;&lt;TD class="l data"&gt;A&lt;/TD&gt;&lt;TD class="l data"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="r rowheader" scope="row"&gt;&lt;/TH&gt;&lt;TD class="r data"&gt;2&lt;/TD&gt;&lt;TD class="l data"&gt;A&lt;/TD&gt;&lt;TD class="l data"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data combo2;&lt;/P&gt;&lt;P&gt;put _n_;&lt;/P&gt;&lt;P&gt;if 1 then set a;&lt;/P&gt;&lt;P&gt;set b;&lt;/P&gt;&lt;P&gt;run; proc print;run;&lt;/P&gt;&lt;P&gt;result is:&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Print: Data Set WORK.COMBO2"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH class="r rowheader" scope="row"&gt;&lt;/TH&gt;&lt;TD class="r data"&gt;1&lt;/TD&gt;&lt;TD class="l data"&gt;A&lt;/TD&gt;&lt;TD class="l data"&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="r rowheader" scope="row"&gt;&lt;/TH&gt;&lt;TD class="r data"&gt;3&lt;/TD&gt;&lt;TD class="l data"&gt;T&lt;/TD&gt;&lt;TD class="l data"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this different?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 16:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58271#M12664</guid>
      <dc:creator>ZRick</dc:creator>
      <dc:date>2012-04-08T16:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set a; set b; minimal record number, not applicable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58272#M12665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The datastep loop iterates as long as it can. When a set statement tries to read beyond end of file, the loop continues to the end, it does not produce a new observation, and it stops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first case, &lt;STRONG&gt;set a&lt;/STRONG&gt; is prevented from reading beyond the end of file, so it is &lt;STRONG&gt;set b&lt;/STRONG&gt; that tries first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second case, &lt;STRONG&gt;set a&lt;/STRONG&gt; is read at every loop, so it tries to read beyond the end of file first. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 20:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58272#M12665</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-08T20:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set a; set b; minimal record number, not applicable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58273#M12666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PG's code&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background: none repeat scroll 0% 0% white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; combo;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="background: none repeat scroll 0% 0% white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="background: none repeat scroll 0% 0% white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="background: none repeat scroll 0% 0% white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; b;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background: none repeat scroll 0% 0% white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;is the same with the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background: none repeat scroll 0% 0% white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; combo;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; b;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background: none repeat scroll 0% 0% white; color: navy; font-family: 'Courier New'; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;Because A is the smallest table ,so when Data Step reach at the end of A, it &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;stop working.You only can get two observations.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;Ksharp&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 05:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58273#M12666</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-04-09T05:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set a; set b; minimal record number, not applicable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58274#M12667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS stops when it reaches the end of a dataset. In your example, the end of dataset SAS reaches is the end of dataset b.&amp;nbsp; " if _n_=1 then set data a;" makes it impossible for SAS to reach the end of dataset a. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 13:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58274#M12667</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-09T13:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set a; set b; minimal record number, not applicable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58275#M12668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a classic paper on this whole topic what you may find helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lexjansen.com/nesug/nesug88/sas_supervisor.pdf"&gt;http://www.lexjansen.com/nesug/nesug88/sas_supervisor.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 13:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-a-set-b-minimal-record-number-not-applicable/m-p/58275#M12668</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-04-09T13:48:45Z</dc:date>
    </item>
  </channel>
</rss>

