data Nobs_Red_Count;
/*通过选项nobs=获取记录总条数,并赋值给变量total_obs*/
if 0 then set sashelp.class nobs= total_obs;
/*给新字段total赋值*/
total=total_obs;
output;/*输出到新数据表nobs2*/
stop;/*结束指针*/
run;
data Nobs_Red_Count;
/*通过选项nobs=获取记录总条数,并赋值给变量total_obs*/
if 0 then set sashelp.class nobs= total_obs;
/*给新字段total赋值*/
total=total_obs;
output;/*输出到新数据表nobs2*/
stop;/*结束指针*/
run;