<?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 Keep empty rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802018#M315685</link>
    <description>&lt;P&gt;Is there a way to keep a row even if it has no value and rather then deleting it (just like SAS does) , just keep the information from the first column and set the rest of the columns to empty values.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is an example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imagine i have these possible product ids and if the information is not available (no product found) about an id&amp;nbsp; then rather than deleting the row (in the output) just keep the id column and fill the product and price column with an empty cell&amp;nbsp; :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="isgnr_0-1647280689776.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69442i7FDFB5727A307726/image-size/medium?v=v2&amp;amp;px=400" role="button" title="isgnr_0-1647280689776.png" alt="isgnr_0-1647280689776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If for instance i have no product&amp;nbsp; then SAS gives me this output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="isgnr_1-1647280862939.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69448i4E8A9AB80849D074/image-size/medium?v=v2&amp;amp;px=400" role="button" title="isgnr_1-1647280862939.png" alt="isgnr_1-1647280862939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but i want to see this output :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="isgnr_2-1647280890952.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69449i329DE5B9AD9251C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="isgnr_2-1647280890952.png" alt="isgnr_2-1647280890952.png" /&gt;&lt;/span&gt;&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>Mon, 14 Mar 2022 18:01:54 GMT</pubDate>
    <dc:creator>elsfy</dc:creator>
    <dc:date>2022-03-14T18:01:54Z</dc:date>
    <item>
      <title>Keep empty rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802018#M315685</link>
      <description>&lt;P&gt;Is there a way to keep a row even if it has no value and rather then deleting it (just like SAS does) , just keep the information from the first column and set the rest of the columns to empty values.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is an example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imagine i have these possible product ids and if the information is not available (no product found) about an id&amp;nbsp; then rather than deleting the row (in the output) just keep the id column and fill the product and price column with an empty cell&amp;nbsp; :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="isgnr_0-1647280689776.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69442i7FDFB5727A307726/image-size/medium?v=v2&amp;amp;px=400" role="button" title="isgnr_0-1647280689776.png" alt="isgnr_0-1647280689776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If for instance i have no product&amp;nbsp; then SAS gives me this output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="isgnr_1-1647280862939.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69448i4E8A9AB80849D074/image-size/medium?v=v2&amp;amp;px=400" role="button" title="isgnr_1-1647280862939.png" alt="isgnr_1-1647280862939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but i want to see this output :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="isgnr_2-1647280890952.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69449i329DE5B9AD9251C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="isgnr_2-1647280890952.png" alt="isgnr_2-1647280890952.png" /&gt;&lt;/span&gt;&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>Mon, 14 Mar 2022 18:01:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802018#M315685</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-03-14T18:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Keep empty rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802024#M315689</link>
      <description>the first image is not a table, i want to have an output with all the possibilities even if there is no information about it. Hope it is clear</description>
      <pubDate>Mon, 14 Mar 2022 18:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802024#M315689</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-03-14T18:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Keep empty rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802025#M315690</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Is there a way to keep a row even if it has no value and rather then deleting it (just like SAS does)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS does not delete empty rows. You, the human user, have written SAS code that tells SAS to delete empty row. It certainly is possible to not delete empty rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what you are asking though. I need a better explanation of the logic. It seems as if you have data set #2, how would you know, as the programmer, what other IDs need to be in the data set???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 18:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802025#M315690</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-03-14T18:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Keep empty rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802030#M315692</link>
      <description>&lt;P&gt;I know the exact list of the different products that can be in a table (10 products max).&lt;/P&gt;&lt;P&gt;I can have 10 different rows for each product then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now what i did is a sas code&amp;nbsp; based on conditions (e.g price &amp;gt; 2) so i get an output (name it tableA) with 5 rows.&lt;/P&gt;&lt;P&gt;But i want an output with 10 rows (i.e the maximum row possibility ) with&amp;nbsp; tableA information and the other 5 rows (products) that don't respect the conditions displayed too but with no numerical value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;What i imagined is creating a table and adding a row for each possible product (10 rows then).&lt;/P&gt;&lt;P&gt;Then merging it with tableA.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 18:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802030#M315692</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-03-14T18:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Keep empty rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802031#M315693</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;What i imagined is creating a table and adding a row for each possible product (10 rows then).&lt;/P&gt;
&lt;P&gt;Then merging it with tableA.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, that is indeed what you want to do. But don't you mean a table which a row for each possible ID?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 18:29:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802031#M315693</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-03-14T18:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Keep empty rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802032#M315694</link>
      <description>&lt;P&gt;Sure, you can return an empty product and price for a product that is neither “bread” nor “cheese”:&lt;BR /&gt;Data want;&lt;BR /&gt;Set have;&lt;BR /&gt;If product not in (“bread”, “cheese”) then product = “.” And price = “.”;&lt;BR /&gt;Run;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 18:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802032#M315694</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2022-03-14T18:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Keep empty rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802034#M315696</link>
      <description>Yes that’s correct</description>
      <pubDate>Mon, 14 Mar 2022 18:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-empty-rows/m-p/802034#M315696</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-03-14T18:31:45Z</dc:date>
    </item>
  </channel>
</rss>

