SAS 我可以向后进行 SAS 过程观察吗 [英] SAS can I make sas process observations backwards

查看:46
本文介绍了SAS 我可以向后进行 SAS 过程观察吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Sas在处理时从数据集顶部的观察开始,然后继续下一个直到到达底部观察,但是有没有一种简单的方法可以让sas先处理底部观察,然后按照它的方式工作到顶部?

I know that Sas starts with the observation at the top of a dataset when processing and proceeds to the next until it reaches the bottom observation, but is there an easy way to make sas process the bottom observation first and then work its way to the top?

推荐答案

您可以使用 nobspoint 向后处理它,而无需执行任何中间步骤.举个例子:

You can use nobs and point to process it backwards without having to do any intermediate steps. Here's an example:

data backwards;
  do k= nobs to 1 by -1;
   set sashelp.class nobs = nobs point=k;
   output;
  end;
  stop;
run;
proc print data=sashelp.class;run;
proc print data=backwards;run;

请参阅此 pdf 的第 2 页,了解所有详细信息.

See page 2 of this pdf for all the juicy details.

这篇关于SAS 我可以向后进行 SAS 过程观察吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆