Default: | If the BASE= data set is accessed through a SAS server and if no other user has the data set open at the time the APPEND statement begins processing, the BASE= data set defaults to CNTLLEV=MEMBER (member-level locking). When this behavior happens, no other user can update the file while the data set is processed. |
Requirement: | The BASE= data set must be a member of a SAS library that supports update processing. |
Tips: | You can specify most data set options for the BASE= argument
and DATA= option. However, if you specify DROP=, KEEP=, or RENAME=
data set option for the BASE= data set, the option is ignored. You
can use any global statements as well.
If a failure occurs during processing, the data set is marked as damaged and is reset to its preappend condition at the next REPAIR statement. If the data set has an index, the index is not updated with each observation but is updated once at the end. (This behavior is Version 7 and later, as long as APPENDVER=V6 is not set.) |
Example: | Concatenating Two SAS Data Sets |
/* appends historical version to base A */ proc datasets; append base=a data=a (gennum=2); /* appends current version of A to historical version */ proc datasets; append base=a (gennum=1) data=a;
The GETSORT option has no effect on the data sets if there are dropped, kept, or renamed variables in the DATA= data file.
INFO:
- The data sets use different engines, have different variables
or have attributes that might differ.
data format1; input Date date9.; format Date date9.; datalines; 24sep1975 22may1952 ; data format2; input Date datetime20.; format Date datetime20.; datalines; 25aug1952:11:23:07.4 ; proc append base=format1 data=format2; run;
NOTE: Appending WORK.FORMAT2 to WORK.FORMAT1. WARNING: Variable Date has format DATE9. on the BASE data set and format DATETIME20. on the DATA data set. DATE9. used. NOTE: There were 1 observations read from the data set WORK.FORMAT2. NOTE: 1 observations added. NOTE: The data set WORK.FORMAT1 has 3 observations and 1 variables.