Just curious....why do some procs (PRINT,FORMAT) use RUN; while others (SQL; DATASETS) use 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:
CATALOG | DATASETS | PLOT | PMENU | TRANTAB |
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.
straight from the horse's mouth (with apologies to Dr. Goodnight)
SQL is unique.
Others that have "run group processing" like REG, DATASETS use QUIT.
That sounds about right.
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
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
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:
CATALOG | DATASETS | PLOT | PMENU | TRANTAB |
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.
straight from the horse's mouth (with apologies to Dr. Goodnight)
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.