What is the difference between quit and run in sas




















In SAS, what is the difference between 'quit' and 'run'? I cannot figure out when to use 'quit' and when to use 'run'? For example, why is proc datasets using quit but proc contents using run. Back in the older mainframe days, statements would've been submitted to SAS one at a time or in batches, but the core concept here is that each line is separate from SAS's point of view.

In a data step, or a non-interactive proc proc means, for example - a proc that can only do one set of instructions, and then exits , run tells it to do whatever and then return to a blank slate.

QUIT; is used in interactive programming environments. These are called "run groups", and "run group processing" is the term you'll see associated with that.

You will find that some people put run; quit; at every point that run; or quit; might be appropriate; that doesn't hurt anything, though it isn't really 'right', either.

And there are some cases where it's needed to do that! Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 5 years, 11 months ago. I enjoy sharing my advice on career development. Follow me on Twitter chemstateric. August 1, Leave a comment. However, there are some notable exceptions to this.

It turns out that there is another set of statistical procedures that require the QUIT statement, and some of them are very common. For example, if you try to output a data set from one such PROC and end it with the RUN statement, then you will get this error message:. You are commenting using your WordPress.

You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account. Notify me of new comments via email. Notify me of new posts via email. Posted AM views. I am new to SAS. Accepted Solutions. Re: Difference between Run and Quit statement. Posted AM views In reply to Kamal Neither one will terminate a SAS program.

Posted AM views In reply to Tom. Warm regards. Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.

Recommended by SAS. For personalized recommendations, sign in with your SAS profile.



0コメント

  • 1000 / 1000