SAS宏编程技术幻灯片.pptVIP

  • 3
  • 0
  • 约6.06千字
  • 约 87页
  • 2018-02-22 发布于天津
  • 举报
第14章 宏编程技术;本章内容包括: ;概述 ;宏变量 ;引用宏变量 ;例14.2 宏处理器只能在双引号内进行替代。 %let a=january; data; put This is the time series plot for A; run; 例中,在引号内引用宏变量的值时必须用双引号。因为宏处理器只能在双引号内进行替代。 ;606 %let a=january; 607 data; 608 put This is the time series plot for A; 609 run; This is the time series plot for january NOTE: 数据集 WORK.DATA1 有 1 个观测和 0 个变量。 NOTE: “DATA 语句”所用时间(总处理时间): 实际时间 0.01 秒 CPU 时间 0.01 秒;例14.3 多次引用宏变量。 %let a=ResDat.class; data male; set a ; if sex=M; proc print; title SUBSET OF A; data female; set a ; if sex=F; proc print; title SUBSET OF A; run;;例14.4 改变宏变量的值。 %let

文档评论(0)

1亿VIP精品文档

相关文档