SAS Data Step 4 Combine Datasets.pptVIP

  • 17
  • 0
  • 约 45页
  • 2016-06-16 发布于江西
  • 举报
SAS Data Step 4 Combine Datasets

* SAS looks at the first BY group in each data set to determine which BY group should appear first. In this case, the first BY group, observations with the value 1 for variable ID, is the same in both data sets. SAS reads and copies the first observation from dataset A into the PDV, as the next figure illustrates. * DATA c; MERGE a b; BY id; RUN; ... PDV Match Merge -- Example Execute A _N_ _ERROR_ ID A B first.ID last.ID 1 0 1 0 1 A1 * SAS reads and copies the first observation from B into the PDV, as the next figure illustrates. If a data set does not have any observations in a

文档评论(0)

1亿VIP精品文档

相关文档