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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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