Help using Base SAS procedures

basic question: Run; vs Quit;

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 15
Accepted Solution

basic question: Run; vs Quit;

Just curious....why do some procs (PRINT,FORMAT) use RUN; while others (SQL; DATASETS) use QUIT; ?


Accepted Solutions
Solution
‎04-04-2013 11:31 AM
New Contributor
Posts: 2

Re: basic question: Run; vs Quit;

here is the answer straight from SAS documentation:

RUN-group processing enables you to submit a PROC step with a RUN statement without ending the procedure. You can continue to use the procedure without issuing another PROC statement. To end the procedure, use a RUN CANCEL or a QUIT statement. Several base SAS procedures support RUN-group processing:

CATALOGDATASETSPLOTPMENUTRANTAB

See the section on the individual procedure for more information.

Note:   PROC SQL executes each query automatically. Neither the RUN nor RUN CANCEL statement has any effect.  [cautionend]

straight from the horse's mouth (with apologies to Dr. Goodnight)

View solution in original post


All Replies
Respected Advisor
Posts: 3,773

Re: basic question: Run; vs Quit;

SQL is unique.

Others that have "run group processing" like REG, DATASETS use QUIT.

That sounds about right.

Super Contributor
Posts: 273

Re: basic question: Run; vs Quit;

While you are asking this, perhaps you don't know that RUN CANCEL;  exists. It has the effect of a progressive syntaxic analysis without execution Andre

9    proc freiq data=sashelp.class; ERROR: Procedure FREIQ not found.

10        tuobles sex;

11  run cancel; WARNING: The procedure was not executed at the user's request.

NOTE: PROCEDURE FREIQ used (Total process time):     

real time          0.01 seconds       cpu time            0.00 seconds

13       proc freq data=sashelp.class;

14        tuobles sex;         

-------           180 ERROR 180-322: Statement is not valid or it is used out of proper order.

15  run cancel;

WARNING: The procedure was not executed at the user's request.

NOTE: The SAS System stopped processing this step because of errors.

NOTE: PROCEDURE FREQ used (Total process time):     

real time          0.10 seconds       cpu time            0.01 seconds

Contributor
Posts: 36

Re: basic question: Run; vs Quit;

I was recently asking myself the same thing, and ran across this answer:  http://www.runsubmit.com/questions/313/what-is-the-difference-between-run-and-quit

Solution
‎04-04-2013 11:31 AM
New Contributor
Posts: 2

Re: basic question: Run; vs Quit;

here is the answer straight from SAS documentation:

RUN-group processing enables you to submit a PROC step with a RUN statement without ending the procedure. You can continue to use the procedure without issuing another PROC statement. To end the procedure, use a RUN CANCEL or a QUIT statement. Several base SAS procedures support RUN-group processing:

CATALOGDATASETSPLOTPMENUTRANTAB

See the section on the individual procedure for more information.

Note:   PROC SQL executes each query automatically. Neither the RUN nor RUN CANCEL statement has any effect.  [cautionend]

straight from the horse's mouth (with apologies to Dr. Goodnight)

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 5948 views
  • 0 likes
  • 5 in conversation