宏编程己图术.pptVIP

  • 2
  • 0
  • 约1.04万字
  • 约 60页
  • 2017-10-21 发布于浙江
  • 举报
宏编程己图术

%macro analyze(dat, year, pr,price,year1); %* create the data set TEMP; %create; %* plot the variables selected; %plot; %mend analyze; %analyze(stk000002, 2000, 收盘价,clpr,2000); run; 条件表达式 例16.18 用条件表达式%if-%then定义宏。 %macro analyze(getdata, dat, year, pr,price,year1); %if getdata=yes %then %create; %plot; %mend analyze; %analyze(yes, stk000002, 2000, 收盘价,clpr,2000); %analyze(no, stk000002, 2000, 最高价,hipr,2000); run; 例16.19 多个%THEN分句。 %macro analyze(getdata, dat, year, pr,price,year1); title; %if getdata=yes %then %do; %create; title3 Data Set Created for The Plot; %end; %plot; %mend analyze;

文档评论(0)

1亿VIP精品文档

相关文档