<?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: Unable to concatenate date to end of the data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-concatenate-date-to-end-of-the-data-set/m-p/436660#M108630</link>
    <description>&lt;P&gt;This Works as you described.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
x=today();
y=put(x,ddmmyy6.);
call symput('dates',y);
run;

data x_&amp;amp;dates.;
set x;
run;

data y_&amp;amp;dates.;
set y;
run;

data y_&amp;amp;dates.;
set y;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Let us know if it worked.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 12:05:29 GMT</pubDate>
    <dc:creator>Satish_Parida</dc:creator>
    <dc:date>2018-02-13T12:05:29Z</dc:date>
    <item>
      <title>Unable to concatenate date to end of the data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-concatenate-date-to-end-of-the-data-set/m-p/436641#M108618</link>
      <description>&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 sample data sets named 1)x&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2)y&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3)z&lt;/P&gt;&lt;P&gt;I tried to concatenate 3 data sets as x021218.sas7bdat ,y021218.sas7bdat,z021218.sas7bdat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this to happen i have used below mentioned line of code&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let x = %sysfunc(cats(x,%sysfunc(intnx(day,%sysfunc(date()),-1),mmddyy6.)));&lt;/P&gt;&lt;P&gt;but i could see my out put as x21218.sas7bdat .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please help me in getting the desired output&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-concatenate-date-to-end-of-the-data-set/m-p/436641#M108618</guid>
      <dc:creator>bharadwaj6560</dc:creator>
      <dc:date>2018-02-13T11:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to concatenate date to end of the data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-concatenate-date-to-end-of-the-data-set/m-p/436643#M108620</link>
      <description>&lt;P&gt;When you say "concatenate datasets", what do you mean? Do you want to stack them op top of each other? Do they share the same variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please be more specific&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:13:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-concatenate-date-to-end-of-the-data-set/m-p/436643#M108620</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-02-13T11:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to concatenate date to end of the data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-concatenate-date-to-end-of-the-data-set/m-p/436646#M108622</link>
      <description>&lt;P&gt;concatenate in my perspective means adding a previous date in mmddyy6. format to dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example my output data set requirement is x021218.sas7bdat&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so i used this line of code for example&amp;nbsp;%let test = %sysfunc(cats(x,%sysfunc(intnx(day,%sysfunc(date()),-1),mmddyy6.)));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but my output is in following format x21218.sas7bdat&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-concatenate-date-to-end-of-the-data-set/m-p/436646#M108622</guid>
      <dc:creator>bharadwaj6560</dc:creator>
      <dc:date>2018-02-13T11:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to concatenate date to end of the data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-concatenate-date-to-end-of-the-data-set/m-p/436660#M108630</link>
      <description>&lt;P&gt;This Works as you described.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
x=today();
y=put(x,ddmmyy6.);
call symput('dates',y);
run;

data x_&amp;amp;dates.;
set x;
run;

data y_&amp;amp;dates.;
set y;
run;

data y_&amp;amp;dates.;
set y;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Let us know if it worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 12:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-concatenate-date-to-end-of-the-data-set/m-p/436660#M108630</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-02-13T12:05:29Z</dc:date>
    </item>
  </channel>
</rss>

