<?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: Creating dummy data to show on report with no data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-dummy-data-to-show-on-report-with-no-data/m-p/719784#M222906</link>
    <description>&lt;P&gt;Thank you. It worked with parenthesis&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;data DUMMY;
  array UNITS[3] $ ('45' '55' '65');
  do DATE="&amp;amp;startdt"d to "&amp;amp;enddt"d;
    do I=1 to dim(UNITS);
      UNIT= UNITS[I];
      output;
    end;
  end;
  format DATE date9.;
run;&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 17 Feb 2021 02:52:45 GMT</pubDate>
    <dc:creator>Stalk</dc:creator>
    <dc:date>2021-02-17T02:52:45Z</dc:date>
    <item>
      <title>Creating dummy data to show on report with no data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-dummy-data-to-show-on-report-with-no-data/m-p/719773#M222898</link>
      <description>&lt;P&gt;How can I create date as well as unit for all the combinations. What's wrong with this code?&lt;/P&gt;
&lt;P&gt;Data dummy;&lt;BR /&gt;date="&amp;amp;start."d;&lt;BR /&gt;do while (date&amp;lt;="&amp;amp;enddt."d);&lt;/P&gt;
&lt;P&gt;output;&lt;BR /&gt;date=intnx('day', date, 1, 's');&lt;BR /&gt;end;&lt;BR /&gt;format date date9.;&lt;BR /&gt;array unit[3] $ '45' '55' '65';&lt;BR /&gt;do i=1 to 3; &lt;BR /&gt;unit = unit[i];&lt;BR /&gt;end;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 01:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-dummy-data-to-show-on-report-with-no-data/m-p/719773#M222898</guid>
      <dc:creator>Stalk</dc:creator>
      <dc:date>2021-02-17T01:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dummy data to show on report with no data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-dummy-data-to-show-on-report-with-no-data/m-p/719776#M222900</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; What's wrong with this code?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Its formatting for sure.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also we don't know what result you expect. the second loop does nothing as no output statement is provided.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I suppose you might want to put the second loop inside the first one maybe?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data DUMMY;
  array UNITS[3] $ '45' '55' '65';
  do DATE="&amp;amp;startdt"d to "&amp;amp;enddt"d;
    do I=1 to dim(UNITS);
      UNIT= UNITS[I];
      output;
    end;
  end;
  format DATE date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 01:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-dummy-data-to-show-on-report-with-no-data/m-p/719776#M222900</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-17T01:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dummy data to show on report with no data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-dummy-data-to-show-on-report-with-no-data/m-p/719784#M222906</link>
      <description>&lt;P&gt;Thank you. It worked with parenthesis&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;data DUMMY;
  array UNITS[3] $ ('45' '55' '65');
  do DATE="&amp;amp;startdt"d to "&amp;amp;enddt"d;
    do I=1 to dim(UNITS);
      UNIT= UNITS[I];
      output;
    end;
  end;
  format DATE date9.;
run;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 02:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-dummy-data-to-show-on-report-with-no-data/m-p/719784#M222906</guid>
      <dc:creator>Stalk</dc:creator>
      <dc:date>2021-02-17T02:52:45Z</dc:date>
    </item>
  </channel>
</rss>

