<?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 Proc APPEND in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-APPEND/m-p/60029#M12977</link>
    <description>data  period2A;&lt;BR /&gt;
	infile 'c:\Cwa\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 print data=period2A;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data  	period2B;&lt;BR /&gt;
	infile 'c:\Cwa\period2_sales_data_B.dat';&lt;BR /&gt;
	Input 	TransactionID $1-8&lt;BR /&gt;
			TimeofSale	  $9-16;&lt;BR /&gt;
proc print data=period2B;&lt;BR /&gt;
run;	&lt;BR /&gt;
&lt;BR /&gt;
proc append base = period2A data= period2B ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The LOG wiindow after running the append command  says :&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
301  proc append base = period2A data= period2B ;&lt;BR /&gt;
302  run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Appending WORK.PERIOD2B to WORK.PERIOD2A.&lt;BR /&gt;
WARNING: Variable TimeofSale was not found on BASE file. The variable will not be added to the BASE&lt;BR /&gt;
         file.&lt;BR /&gt;
WARNING: Variable DateofSale was not found on DATA file.&lt;BR /&gt;
WARNING: Variable LaptopModel was not found on DATA file.&lt;BR /&gt;
WARNING: Variable UnitsSold was not found on DATA file.&lt;BR /&gt;
WARNING: Variable Warranty was not found on DATA file.&lt;BR /&gt;
ERROR: No appending done because of anomalies listed above. Use FORCE option to append these files.&lt;BR /&gt;
NOTE: 0 observations added.&lt;BR /&gt;
NOTE: The data set WORK.PERIOD2A has 245 observations and 5 variables.&lt;BR /&gt;
NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;
NOTE: PROCEDURE APPEND used (Total process time):&lt;BR /&gt;
      real time           0.07 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
&lt;BR /&gt;
what am i mistaken in ?&lt;BR /&gt;
&lt;BR /&gt;
kindly guide.&lt;BR /&gt;
&lt;BR /&gt;
mark</description>
    <pubDate>Fri, 19 Feb 2010 12:41:11 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-02-19T12:41:11Z</dc:date>
    <item>
      <title>Proc APPEND</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-APPEND/m-p/60029#M12977</link>
      <description>data  period2A;&lt;BR /&gt;
	infile 'c:\Cwa\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 print data=period2A;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data  	period2B;&lt;BR /&gt;
	infile 'c:\Cwa\period2_sales_data_B.dat';&lt;BR /&gt;
	Input 	TransactionID $1-8&lt;BR /&gt;
			TimeofSale	  $9-16;&lt;BR /&gt;
proc print data=period2B;&lt;BR /&gt;
run;	&lt;BR /&gt;
&lt;BR /&gt;
proc append base = period2A data= period2B ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The LOG wiindow after running the append command  says :&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
301  proc append base = period2A data= period2B ;&lt;BR /&gt;
302  run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Appending WORK.PERIOD2B to WORK.PERIOD2A.&lt;BR /&gt;
WARNING: Variable TimeofSale was not found on BASE file. The variable will not be added to the BASE&lt;BR /&gt;
         file.&lt;BR /&gt;
WARNING: Variable DateofSale was not found on DATA file.&lt;BR /&gt;
WARNING: Variable LaptopModel was not found on DATA file.&lt;BR /&gt;
WARNING: Variable UnitsSold was not found on DATA file.&lt;BR /&gt;
WARNING: Variable Warranty was not found on DATA file.&lt;BR /&gt;
ERROR: No appending done because of anomalies listed above. Use FORCE option to append these files.&lt;BR /&gt;
NOTE: 0 observations added.&lt;BR /&gt;
NOTE: The data set WORK.PERIOD2A has 245 observations and 5 variables.&lt;BR /&gt;
NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;
NOTE: PROCEDURE APPEND used (Total process time):&lt;BR /&gt;
      real time           0.07 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
&lt;BR /&gt;
what am i mistaken in ?&lt;BR /&gt;
&lt;BR /&gt;
kindly guide.&lt;BR /&gt;
&lt;BR /&gt;
mark</description>
      <pubDate>Fri, 19 Feb 2010 12:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-APPEND/m-p/60029#M12977</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-19T12:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc APPEND</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-APPEND/m-p/60030#M12978</link>
      <description>Proc append simply does what it says, adds one dataset to the end of the other.  The FORCE option will make it append with differing variables, but your data has none in common.  &lt;BR /&gt;
&lt;BR /&gt;
My guess is that you want to merge the datasets not append.&lt;BR /&gt;
&lt;BR /&gt;
so sort both then do.&lt;BR /&gt;
&lt;BR /&gt;
data new;&lt;BR /&gt;
merge period2A period 2B;&lt;BR /&gt;
by TransactionID;&lt;BR /&gt;
RUN;</description>
      <pubDate>Fri, 19 Feb 2010 12:58:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-APPEND/m-p/60030#M12978</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-02-19T12:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc APPEND</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-APPEND/m-p/60031#M12979</link>
      <description>I used the follwing code :&lt;BR /&gt;
&lt;BR /&gt;
libname sc 'c:\Cwa';&lt;BR /&gt;
data   sc.period2A;&lt;BR /&gt;
	infile 'c:\Cwa\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=period 2A;&lt;BR /&gt;
	By TransactionID;&lt;BR /&gt;
Run;&lt;BR /&gt;
proc print data=period2A;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data  	sc.period2B;&lt;BR /&gt;
	infile 'c:\Cwa\period2_sales_data_B.dat';&lt;BR /&gt;
	Input 	TransactionID $1-8&lt;BR /&gt;
			TimeofSale	  $9-16;&lt;BR /&gt;
proc sort data=period 2B;&lt;BR /&gt;
	By TransactionID;&lt;BR /&gt;
Run;&lt;BR /&gt;
proc print data=period2B;&lt;BR /&gt;
run;	&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data sc.new;&lt;BR /&gt;
merge period2A period 2B;&lt;BR /&gt;
by TransactionID;&lt;BR /&gt;
RUN;&lt;BR /&gt;
proc print data = new;&lt;BR /&gt;
Run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
A Sample of the Log window showing errors is :&lt;BR /&gt;
&lt;BR /&gt;
18   proc sort data=period 2B;&lt;BR /&gt;
                           -&lt;BR /&gt;
                           22&lt;BR /&gt;
                           200&lt;BR /&gt;
ERROR: File WORK.PERIOD.DATA does not exist.&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: ;, (, ASCII, BUFFNO, DANISH, DATA,.... )&lt;BR /&gt;
&lt;BR /&gt;
ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;
19       By TransactionID;&lt;BR /&gt;
20   Run;&lt;BR /&gt;
&lt;BR /&gt;
51   data sc.new;&lt;BR /&gt;
52   merge period2A period 2B;&lt;BR /&gt;
                           -&lt;BR /&gt;
                           22&lt;BR /&gt;
                           200&lt;BR /&gt;
ERROR: File WORK.PERIOD.DATA does not exist.&lt;BR /&gt;
ERROR: File WORK.B.DATA does not exist.&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, -, :, ;, END,&lt;BR /&gt;
              _DATA_, _LAST_, _NULL_.&lt;BR /&gt;
&lt;BR /&gt;
ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
53   by TransactionID;&lt;BR /&gt;
54   RUN;&lt;BR /&gt;
&lt;BR /&gt;
what mistake have i made ?&lt;BR /&gt;
&lt;BR /&gt;
kindly  guide .&lt;BR /&gt;
&lt;BR /&gt;
mark&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.</description>
      <pubDate>Fri, 19 Feb 2010 13:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-APPEND/m-p/60031#M12979</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-19T13:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc APPEND</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-APPEND/m-p/60032#M12980</link>
      <description>Read your log.  You can't have a space in the middle of a dataset name.</description>
      <pubDate>Fri, 19 Feb 2010 13:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-APPEND/m-p/60032#M12980</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-02-19T13:30:41Z</dc:date>
    </item>
  </channel>
</rss>

