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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 912 views
  • 0 likes
  • 3 in conversation