<?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 concatenate a value of data set to another data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427946#M281425</link>
    <description>&lt;P&gt;You mean that your output should be in a TXT file?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 08:53:20 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-01-16T08:53:20Z</dc:date>
    <item>
      <title>How to concatenate a value of data set to another data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427931#M281421</link>
      <description>&lt;P&gt;I have two files with some data.&lt;/P&gt;&lt;P&gt;file1.txt&lt;/P&gt;&lt;P&gt;123&lt;/P&gt;&lt;P&gt;456&lt;/P&gt;&lt;P&gt;789&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;file2.txt&lt;/P&gt;&lt;P&gt;ABC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want output file file3.txt as:-&lt;/P&gt;&lt;P&gt;123ABC&lt;/P&gt;&lt;P&gt;456ABC&lt;/P&gt;&lt;P&gt;789ABC&lt;/P&gt;&lt;P&gt;100ABC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i do this?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 07:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427931#M281421</guid>
      <dc:creator>yadaw</dc:creator>
      <dc:date>2018-01-16T07:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate a value of data set to another data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427934#M281422</link>
      <description>&lt;P&gt;one way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data file1;
input numVar;
datalines;
123
456
789
100
;

data file2;
charVar="ABC";
run;

proc sql;
	create table file3 as 
	select cats(numVar, charVar) as newVar
	from file1, file2;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jan 2018 07:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427934#M281422</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-16T07:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate a value of data set to another data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427939#M281423</link>
      <description>&lt;P&gt;Btw, do you want to output this as a TXT file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And are file1 and file2 SAS data sets?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427939#M281423</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-16T08:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate a value of data set to another data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427945#M281424</link>
      <description>Output should be in file and file1 and file 2 are data sets&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427945#M281424</guid>
      <dc:creator>yadaw</dc:creator>
      <dc:date>2018-01-16T08:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate a value of data set to another data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427946#M281425</link>
      <description>&lt;P&gt;You mean that your output should be in a TXT file?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427946#M281425</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-16T08:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate a value of data set to another data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427949#M281426</link>
      <description>No any file, doesn't matter text or any other.&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:55:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427949#M281426</guid>
      <dc:creator>yadaw</dc:creator>
      <dc:date>2018-01-16T08:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate a value of data set to another data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427950#M281427</link>
      <description>&lt;P&gt;You can do something like this with a data step&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	set file3;
	file "MyPath\MyFile.txt";
	put newVar;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or alternatively&amp;nbsp;PROC EXPORT to export the file&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 09:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/427950#M281427</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-16T09:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate a value of data set to another data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/428032#M281428</link>
      <description>&lt;P&gt;The INFILE&amp;nbsp; and FILE statements actually require complete paths, not just the file name itself:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;infile "file2.txt";&lt;/P&gt;
&lt;P&gt;input part2 $;&lt;/P&gt;
&lt;P&gt;infile "file1.txt" end=done;&lt;/P&gt;
&lt;P&gt;file "file3.txt" noprint;&lt;/P&gt;
&lt;P&gt;do until (done);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; input part1 $;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; put part1 +(-1) part2;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 14:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-a-value-of-data-set-to-another-data-set/m-p/428032#M281428</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-01-16T14:39:21Z</dc:date>
    </item>
  </channel>
</rss>

