<?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 do I create panel data from cross section and fill in in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735434#M229104</link>
    <description>&lt;P&gt;I still get an unexpected note:&lt;/P&gt;
&lt;PRE&gt; 69         data have;
 70            input Id Startdate DDMMYYn8. Enddate DDMMYYn8.;
                                  _________         _________
                                  485               485
 NOTE 485-185: Informat DDMMYYN was not found or could not be loaded.&lt;/PRE&gt;</description>
    <pubDate>Tue, 20 Apr 2021 06:50:42 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2021-04-20T06:50:42Z</dc:date>
    <item>
      <title>How do I create panel data from cross section and fill in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735204#M229032</link>
      <description>&lt;P&gt;I want to create a panel data based on a cross section data set and fill in observations per quarter. A variable Present needs to be created. Presents=1 if in the interval between Startdate and Enddate, 0 otherwise. The observation period starts 1 Jan 1994 and end 31 Dec 2015.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have:&lt;/P&gt;&lt;P&gt;Id Startdate&amp;nbsp; &amp;nbsp; &amp;nbsp; Enddate&lt;/P&gt;&lt;P&gt;1 15021994&amp;nbsp; &amp;nbsp; &amp;nbsp;06111994&lt;/P&gt;&lt;P&gt;2 15021995&amp;nbsp; &amp;nbsp; &amp;nbsp;31121995&lt;/P&gt;&lt;P&gt;2 01011996&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;3 01041998&amp;nbsp; &amp;nbsp; 01111998&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want:&lt;/P&gt;&lt;P&gt;Id YYQ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Present&lt;/P&gt;&lt;P&gt;1 1994Q1&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;1 1994Q2&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;1 1994Q3&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;1 1994Q4&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;1 1995Q1&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;1 1995Q2 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and so on until 2015Q4&lt;/P&gt;&lt;P&gt;2 1994Q1 0&lt;/P&gt;&lt;P&gt;2 1994Q2 0&lt;/P&gt;&lt;P&gt;2 1994Q3 0&lt;/P&gt;&lt;P&gt;2 1994Q4 0&lt;/P&gt;&lt;P&gt;2 1995Q1 1&lt;/P&gt;&lt;P&gt;2 1995Q2 1&lt;/P&gt;&lt;P&gt;2 1995Q3 1&lt;/P&gt;&lt;P&gt;2 1995Q4 1&lt;/P&gt;&lt;P&gt;2 1996Q1 0&lt;/P&gt;&lt;P&gt;2 1996Q2 0&lt;/P&gt;&lt;P&gt;2 1996Q3 0&lt;/P&gt;&lt;P&gt;2 1996Q4 1&lt;/P&gt;&lt;P&gt;2 1997Q1 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and so on until 2015Q4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 10:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735204#M229032</guid>
      <dc:creator>terjeph</dc:creator>
      <dc:date>2021-04-19T10:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create panel data from cross section and fill in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735210#M229034</link>
      <description>&lt;P&gt;Please provide data in usable form.&lt;/P&gt;
&lt;P&gt;It is not clear how the missing value in the third obs should be processed.&lt;/P&gt;
&lt;P&gt;And what about the observation period you have in the description? The Variable "YYQ" in want is way out of period you mention.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 10:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735210#M229034</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-04-19T10:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create panel data from cross section and fill in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735342#M229080</link>
      <description>&lt;P&gt;I want to create a panel data based on a cross section data set and fill in observations per quarter. A variable called Present needs to be created. Present = 1 for the interval between (and included) Startdate and (included) Enddate, 0 otherwise. The observation period starts 1 Jan 1994 and ends 31 Dec 1996. The missing value in dataline 3 indicate that the state is still ongoing (truncation).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="background-color: transparent; color: black; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; font-size: inherit; word-spacing: normal;"&gt;DATA HAVE;&lt;BR /&gt;&lt;/SPAN&gt; INPUT Id Startdate DDMMYYYY8.  Enddate DDMMYYYY8.;&lt;BR /&gt;DATALINES;&lt;BR /&gt;&lt;CODE class=" language-sas"&gt;1 15021994&amp;nbsp;06111994&lt;BR /&gt;&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;2 15021995&amp;nbsp;31121995&lt;BR /&gt;&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;2 01051996&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;BR /&gt;&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;DATA WANT;&lt;BR /&gt;ID yearqarter PRESENT&lt;BR /&gt;1 1994Q1&amp;nbsp; 1&lt;BR /&gt;1 1994Q2&amp;nbsp; 1&lt;BR /&gt;1 1994Q3&amp;nbsp; 1&lt;BR /&gt;1 1994Q4&amp;nbsp; 0&lt;BR /&gt;1 1995Q1&amp;nbsp; 0&lt;BR /&gt;1 1995Q2  0&lt;BR /&gt;1 1995Q3  0&lt;BR /&gt;1 1995Q4  0&lt;BR /&gt;1 1996Q1&amp;nbsp; 0&lt;BR /&gt;1 1996Q2 0&lt;BR /&gt;1 1996Q3 0&lt;BR /&gt;1 1996Q4 0&lt;BR /&gt;2 1994Q1 0&lt;BR /&gt;2 1994Q2 0&lt;BR /&gt;2 1994Q3 0&lt;BR /&gt;2 1994Q4 0&lt;BR /&gt;2 1995Q1 1&lt;BR /&gt;2 1995Q2 1&lt;BR /&gt;2 1995Q3 1&lt;BR /&gt;2 1995Q4 1&lt;BR /&gt;2 1996Q1 0&lt;BR /&gt;2 1996Q2 1&lt;BR /&gt;2 1996Q3 1&lt;BR /&gt;2 1996Q4 1&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 19:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735342#M229080</guid>
      <dc:creator>terjeph</dc:creator>
      <dc:date>2021-04-19T19:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create panel data from cross section and fill in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735343#M229081</link>
      <description>&lt;P&gt;DATA HAVE;&lt;BR /&gt;INPUT Id Startdate DDMMYY8. Enddate DDMMYY8.;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 15021994 06111994&lt;BR /&gt;2 15021995 31121995&lt;BR /&gt;2 01051996 .&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 06:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735343#M229081</guid>
      <dc:creator>terjeph</dc:creator>
      <dc:date>2021-04-20T06:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create panel data from cross section and fill in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735424#M229099</link>
      <description>&lt;P&gt;Please check the code prior to posting!&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/54666"&gt;@terjeph&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;DATA HAVE;&lt;BR /&gt;INPUT Id Startdate DDMMYYYY8. Enddate DDMMYYYY8.;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 15021994 06111994&lt;BR /&gt;2 15021995 31121995&lt;BR /&gt;2 01051996&lt;BR /&gt;;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt; 69         DATA HAVE;
 70         INPUT Id Startdate DDMMYYYY8. Enddate DDMMYYYY8.;
                               __________         __________
                               485                485
 NOTE 485-185: Informat DDMMYYYY was not found or could not be loaded.
 
 71         DATALINES;
 
 NOTE: LOST CARD.
 REGEL:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                     
 75         ;
 Id=2 Startdate=1051996 Enddate=. _ERROR_=1 _N_=3
 NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
 NOTE: The data set WORK.HAVE has 2 observations and 3 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.07 seconds
       cpu time            0.01 seconds&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Apr 2021 05:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735424#M229099</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-04-20T05:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create panel data from cross section and fill in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735428#M229102</link>
      <description>Please check now</description>
      <pubDate>Tue, 20 Apr 2021 06:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735428#M229102</guid>
      <dc:creator>terjeph</dc:creator>
      <dc:date>2021-04-20T06:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create panel data from cross section and fill in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735434#M229104</link>
      <description>&lt;P&gt;I still get an unexpected note:&lt;/P&gt;
&lt;PRE&gt; 69         data have;
 70            input Id Startdate DDMMYYn8. Enddate DDMMYYn8.;
                                  _________         _________
                                  485               485
 NOTE 485-185: Informat DDMMYYN was not found or could not be loaded.&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Apr 2021 06:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735434#M229104</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-04-20T06:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create panel data from cross section and fill in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735435#M229105</link>
      <description>Delete the n before 8</description>
      <pubDate>Tue, 20 Apr 2021 06:52:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735435#M229105</guid>
      <dc:creator>terjeph</dc:creator>
      <dc:date>2021-04-20T06:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create panel data from cross section and fill in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735436#M229106</link>
      <description>&lt;P&gt;This should work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA HAVE;&lt;BR /&gt;INPUT Id Startdate Enddate DDMMYY8.;&lt;BR /&gt;DATALINES;&lt;BR /&gt;1 15021994 06111994&lt;BR /&gt;2 15021995 31121995&lt;BR /&gt;2 01051996 .&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 07:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-panel-data-from-cross-section-and-fill-in/m-p/735436#M229106</guid>
      <dc:creator>terjeph</dc:creator>
      <dc:date>2021-04-20T07:02:20Z</dc:date>
    </item>
  </channel>
</rss>

