BookmarkSubscribeRSS Feed
msg
Calcite | Level 5 msg
Calcite | Level 5
Hi all,

Unlike "run", certain procesures like proc sql, datasets use "quit" statement to end their step. Every document specifies that they are "interactive" procedures which ic different from other proc's. So, my question is "in what way are they different?". Can we visualize this by an example code?

Thanks
Msg
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Any of these PROCs have commands that can be executed depending on the specific requirement, such as PROC DATASETS or PROC CATALOG - you can review the SAS Procedures Guide for the commands related to the procedure. And so the given procedure remains in a "running" state (depending on the OS platform and whether executing in batch or interactive) until the QUIT; command is issued. Also, for some PROCs, an allocated "libref" or "fileref" remains open until the QUIT; command is issued, which is another consideration for the command.

Scott Barry
SBBWorks, Inc.
ChrisNZ
Tourmaline | Level 20
Further to Scott's reply, another example of a command is a SQL statement in proc sql.
You can start proc sql, and then run SQL statements as you go. Each SQL statement is standalone within the procedure, and doesn't need anything else (like a run;) to be executed.
A third example is proc gplot: You start it, and then do as many plots as you you want on the table the procedure uses. In this case, because a graph might need several statements, each graph is created when the run; statement is encountered.
msg
Calcite | Level 5 msg
Calcite | Level 5
Thanks Sbb & Chris, for your information.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 3 replies
  • 829 views
  • 0 likes
  • 3 in conversation