Why do we use QUIT commmand for proc datasets and proc sql ???
Answers were Sorted based on User's Feedback
Answer / n katepalli
The question was why were those commands used.
To my knowledge, proc sql and datasets are interactive
procedures i.e quit command is used after them i.e telling
sas not to expect another one of them .
where as proc print,sort are non - interactive procedures.
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / rohit bedi
Proc dataset is one of the procedures which allow run group processing which means that if we write only run after proc dataset, it doesn't get terminated. It continues to run in the background. So we mention quit to terminate proc dataset.
Proc sql also gets terminated only when it encounters a step boundary such as quit, data or another proc statement. That is why you see 'Proc SQL Running' in the editor window top bar when proc sql is used without quit statement.
It is not mandatory to mention quit after proc dataset or proc sql but is recommended as a best practice if it is not required to keep the procedures running as it frees up the memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
QUIT command is used for both proc datasets,proc sql.
Proc SQL
Select
from
Quit;
Proc datasets
proc datasets lib=db;
quit;
run;
| Is This Answer Correct ? | 2 Yes | 15 No |
what is the difference between unique key and primary key? : Sas-di
What is the purpose of the trailing and How would you use them?
Name statements that function at both compile and execution time?
What does the RUN statement do?
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
What SAS statements would you code to read an external raw data file to a DATA step?
whenever we using the merging through data set merging ,we can get note in log like this "MERGE STATEMENT HAS MORE THAN ONE ONE DATASET BY REPEATED BY VAIABLES" but the output has come in good manner,whenever in in sql(full join) we can get cartion product.so How do overcome this problem in sql?
what are several options for creating reports in web report studio? : Sas-bi
if reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record
how to delete the duplicates by using proc sql?
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
How to read an input file in sas?