<?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: Saving the merged dataset permanently in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Saving-the-merged-dataset-permanently/m-p/59038#M16607</link>
    <description>Hi Mark,&lt;BR /&gt;
&lt;BR /&gt;
Since you have already specified the libname statement in the beginning, You just have to write a small code to save it to the permanent directory as the other two datasets. Try this after you have created period2 in work directory.&lt;BR /&gt;
&lt;BR /&gt;
data sc.period2;&lt;BR /&gt;
set period2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
"sc" is the library reference of the directory which you have used to import other two datasets.&lt;BR /&gt;
&lt;BR /&gt;
I hope this answers your question.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Saurabh.</description>
    <pubDate>Thu, 18 Feb 2010 06:19:41 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-02-18T06:19:41Z</dc:date>
    <item>
      <title>Saving the merged dataset permanently</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Saving-the-merged-dataset-permanently/m-p/59037#M16606</link>
      <description>Hello ,&lt;BR /&gt;
&lt;BR /&gt;
i merged two datasets "period2_A" and "period2_sales_data_B" into a single data set "period2" and used the code :&lt;BR /&gt;
&lt;BR /&gt;
libname sc 'c:\SAS';&lt;BR /&gt;
data period2_A;&lt;BR /&gt;
	infile 'c:\SAS\period2_sales_data_A.dat';&lt;BR /&gt;
	Input 	TransactionID $1-8&lt;BR /&gt;
			DateofSale	  $9-18&lt;BR /&gt;
			LaptopModel   $19-24&lt;BR /&gt;
			UnitsSold      25-27&lt;BR /&gt;
			Warranty       28;&lt;BR /&gt;
Proc sort data = period2_A;&lt;BR /&gt;
	By TransactionID;&lt;BR /&gt;
proc print data=period2_A;&lt;BR /&gt;
TITLE 'period2_sales_data_A';&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
data period2_sales_data_B;&lt;BR /&gt;
	infile 'c:\SAS\period2_sales_data_B.dat';&lt;BR /&gt;
	Input TransactionID   	  	$1-8&lt;BR /&gt;
	      TimeofSale	        $9-16;&lt;BR /&gt;
Proc sort data = period2_sales_data_B;&lt;BR /&gt;
	By TransactionID;&lt;BR /&gt;
proc print data=period2_sales_data_B;&lt;BR /&gt;
TITLE 'period2_sales_data_B';&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
*Merge data sets period2_A and period2_sales_data_B by Transaction ID;&lt;BR /&gt;
data period2;&lt;BR /&gt;
	merge period2_A period2_sales_data_B;&lt;BR /&gt;
	By TransactionID;&lt;BR /&gt;
Proc Print data= period2;&lt;BR /&gt;
	Title "Period 2 sales" ;&lt;BR /&gt;
Run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I want to save my merged dataset permamnently in the same location as my two datasets which is libname sc 'c:\SAS'; .&lt;BR /&gt;
&lt;BR /&gt;
Kind  Regards ,&lt;BR /&gt;
&lt;BR /&gt;
mark</description>
      <pubDate>Thu, 18 Feb 2010 04:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Saving-the-merged-dataset-permanently/m-p/59037#M16606</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-18T04:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the merged dataset permanently</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Saving-the-merged-dataset-permanently/m-p/59038#M16607</link>
      <description>Hi Mark,&lt;BR /&gt;
&lt;BR /&gt;
Since you have already specified the libname statement in the beginning, You just have to write a small code to save it to the permanent directory as the other two datasets. Try this after you have created period2 in work directory.&lt;BR /&gt;
&lt;BR /&gt;
data sc.period2;&lt;BR /&gt;
set period2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
"sc" is the library reference of the directory which you have used to import other two datasets.&lt;BR /&gt;
&lt;BR /&gt;
I hope this answers your question.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Saurabh.</description>
      <pubDate>Thu, 18 Feb 2010 06:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Saving-the-merged-dataset-permanently/m-p/59038#M16607</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-18T06:19:41Z</dc:date>
    </item>
  </channel>
</rss>

