出错时停止 SAS 宏执行 [英] Stop SAS macro execution on error

查看:48
本文介绍了出错时停止 SAS 宏执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 SAS 中运行一个宏,偶尔会产生这样的错误:

I am running a macro in SAS that occasionally generates errors like this:

错误:排序执行失败.

宏在此错误后继续处理,但我想强制它停止进一步执行.有没有办法做到这一点?

The macro continues processing after this error, but I would like to force it to stop further execution. Is there a way to do this?

推荐答案

评估自动宏变量 &syserr 并有条件地调用 %abort 看起来应该可以工作.

Evaluating the automatic macro variable &syserr and conditionally calling %abort looks like it should work.

这篇关于出错时停止 SAS 宏执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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