<?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: Append dates horizontally in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895270#M353700</link>
    <description>&lt;P&gt;You can see the lack of specific suggestions in the responses to your posting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this is primarily due to the absence of a clear description (or of any description at all) of your objective.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect for every incoming observation, you want to generate two observations, one with DATE4=DATE1, and the second with DATE4=DATE2.&amp;nbsp; But that notion is nothing more than an attempt at mindreading, a skill I do not trust.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can clearly state what you want to dio you would get a lot more help.&amp;nbsp; Please help us help you.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 14:34:05 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2023-09-21T14:34:05Z</dc:date>
    <item>
      <title>Append dates horizontally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895209#M353661</link>
      <description>&lt;P&gt;cust_id&amp;nbsp; &amp;nbsp;date1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date3&lt;/P&gt;&lt;P&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15JAN2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp; &amp;nbsp; &amp;nbsp;30MAR2023&lt;BR /&gt;&lt;BR /&gt;I want an ouput like&amp;nbsp;&lt;/P&gt;&lt;P&gt;cust_id&amp;nbsp; &amp;nbsp;date1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date 4&lt;/P&gt;&lt;P&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15JAN2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp; &amp;nbsp; &amp;nbsp;30MAR2023&amp;nbsp; &amp;nbsp;&amp;nbsp;15JAN2023&lt;/P&gt;&lt;P&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15JAN2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp; &amp;nbsp; &amp;nbsp;30MAR2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you guys see date1 and date2 are appended against date3&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;like that i want an output&amp;nbsp;&lt;BR /&gt;i have dataset of 15000 rows&lt;BR /&gt;kindly guide me here&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 10:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895209#M353661</guid>
      <dc:creator>carl_miles</dc:creator>
      <dc:date>2023-09-21T10:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Append dates horizontally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895211#M353663</link>
      <description>&lt;P&gt;Do you want a third row with the value of date3 also?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 10:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895211#M353663</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2023-09-21T10:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Append dates horizontally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895213#M353665</link>
      <description>No&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Sep 2023 10:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895213#M353665</guid>
      <dc:creator>carl_miles</dc:creator>
      <dc:date>2023-09-21T10:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Append dates horizontally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895237#M353680</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/451191"&gt;@carl_miles&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;cust_id&amp;nbsp; &amp;nbsp;date1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date3&lt;/P&gt;
&lt;P&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15JAN2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp; &amp;nbsp; &amp;nbsp;30MAR2023&lt;BR /&gt;&lt;BR /&gt;I want an ouput like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cust_id&amp;nbsp; &amp;nbsp;date1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date 4&lt;/P&gt;
&lt;P&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15JAN2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp; &amp;nbsp; &amp;nbsp;30MAR2023&amp;nbsp; &amp;nbsp;&amp;nbsp;15JAN2023&lt;/P&gt;
&lt;P&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15JAN2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp; &amp;nbsp; &amp;nbsp;30MAR2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you guys see date1 and date2 are appended against date3&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;like that i want an output&amp;nbsp;&lt;BR /&gt;i have dataset of 15000 rows&lt;BR /&gt;kindly guide me here&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I feel like I don't understand where date4 comes from, or why it is needed. I don't understand how many rows will be created from this initial one row data set. What happens if there are more CUST_ID values, then what?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 12:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895237#M353680</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-21T12:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Append dates horizontally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895238#M353681</link>
      <description>ITS FINE</description>
      <pubDate>Thu, 21 Sep 2023 12:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895238#M353681</guid>
      <dc:creator>carl_miles</dc:creator>
      <dc:date>2023-09-21T12:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Append dates horizontally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895270#M353700</link>
      <description>&lt;P&gt;You can see the lack of specific suggestions in the responses to your posting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this is primarily due to the absence of a clear description (or of any description at all) of your objective.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect for every incoming observation, you want to generate two observations, one with DATE4=DATE1, and the second with DATE4=DATE2.&amp;nbsp; But that notion is nothing more than an attempt at mindreading, a skill I do not trust.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can clearly state what you want to dio you would get a lot more help.&amp;nbsp; Please help us help you.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 14:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895270#M353700</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2023-09-21T14:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Append dates horizontally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895274#M353701</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/451191"&gt;@carl_miles&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;ITS FINE&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This extreme level of brevity does not help me understand the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 14:39:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895274#M353701</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-21T14:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Append dates horizontally</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895280#M353706</link>
      <description>&lt;P&gt;This accomplishes what you ask for the shown values.&lt;/P&gt;
&lt;P&gt;First is a data step to actually have values.&lt;/P&gt;
&lt;PRE&gt;data have;
 input cust_id date1 :date9. date2 :date9.  date3 :Date9.;
 format date: date9.;
datalines;
1001 15JAN2023 20FEB2023 30MAR2023
;

data want;
   set have;
   array d (*) date1 date2;
   do i= 1 to dim(d);
      date4=d[i];
      output;
   end;
   format date4 date9.;
   drop i;
run;&lt;/PRE&gt;
&lt;P&gt;Why? I don't see any practical use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you intend to do with the resulting set? It may be this step just adds complications on the way to your goal.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 14:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-dates-horizontally/m-p/895280#M353706</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-21T14:58:55Z</dc:date>
    </item>
  </channel>
</rss>

