BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
onpoint1
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
jerry_hamilton
Calcite | Level 5

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

4 REPLIES 4
data_null__
Jade | Level 19

SQL is unique.

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

That sounds about right.

Andre
Obsidian | Level 7

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

Michelle
Obsidian | Level 7

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

jerry_hamilton
Calcite | Level 5

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)

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is Bayesian Analysis?

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 18416 views
  • 1 like
  • 5 in conversation