<?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: How to add discontinued numbers between the gap? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-discontinued-numbers-between-the-gap/m-p/924840#M364024</link>
    <description>Create a data set with all zeros:&lt;BR /&gt;&lt;BR /&gt;data zero ;&lt;BR /&gt;Test = 0;&lt;BR /&gt;Pos = 0;&lt;BR /&gt;Lab = 0;&lt;BR /&gt;do weekcode = 2101 to 2115;&lt;BR /&gt;output;&lt;BR /&gt;end ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Then merge, making sure to mention the zeros data set first:&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;merge zero have;&lt;BR /&gt;by weekcode;&lt;BR /&gt;run;</description>
    <pubDate>Thu, 18 Apr 2024 14:58:36 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2024-04-18T14:58:36Z</dc:date>
    <item>
      <title>How to add discontinued numbers between the gap?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-discontinued-numbers-between-the-gap/m-p/924835#M364022</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would like to insert additional numbers between the values in my sample dataset with a 1-unit interval.&amp;nbsp; Please help, thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data HAVE;  
	Format Weekcode 4.0 Test 3.0 Pos 3.0 Lab 4.0; 
	infile datalines delimiter='/'; 
	input Weekcode Test Pos Lab;  
	datalines;                     
2102/ 8/ 3/ 256/
2103/ 3/ 1/ 619/
2106/ 5/ 2/ 2066/
2107/ 3/ 0/ 256/
2110/ 7/ 6/ 619/
;  

data WANT;  
	Format Weekcode 4.0 Test 3.0 Pos 3.0 Lab 4.0; 
	infile datalines delimiter='/'; 
	input Weekcode Test Pos Lab;  
	datalines;                     
2101/ 0/ 0/ 0/
2102/ 8/ 3/ 256/
2103/ 3/ 1/ 619/
2104/ 0/ 0/ 0/
2105/ 0/ 0/ 0/
2106/ 5/ 2/ 2066/
2107/ 3/ 0/ 256/
2108/ 0/ 0/ 0/
2109/ 0/ 0/ 0/
2110/ 7/ 6/ 619/
2111/ 0/ 0/ 0/
2112/ 0/ 0/ 0/
2113/ 0/ 0/ 0/
2114/ 0/ 0/ 0/
2115/ 0/ 0/ 0/
;  &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Apr 2024 14:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-discontinued-numbers-between-the-gap/m-p/924835#M364022</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2024-04-18T14:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add discontinued numbers between the gap?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-discontinued-numbers-between-the-gap/m-p/924840#M364024</link>
      <description>Create a data set with all zeros:&lt;BR /&gt;&lt;BR /&gt;data zero ;&lt;BR /&gt;Test = 0;&lt;BR /&gt;Pos = 0;&lt;BR /&gt;Lab = 0;&lt;BR /&gt;do weekcode = 2101 to 2115;&lt;BR /&gt;output;&lt;BR /&gt;end ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Then merge, making sure to mention the zeros data set first:&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;merge zero have;&lt;BR /&gt;by weekcode;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 18 Apr 2024 14:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-discontinued-numbers-between-the-gap/m-p/924840#M364024</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2024-04-18T14:58:36Z</dc:date>
    </item>
  </channel>
</rss>

