Why do we use QUIT commmand for proc datasets and proc sql ???
Answer Posted / 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 |
Post New Answer View All Answers
Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??
How does proc sql work?
What is PDV?
How do you control the number of observations and/or variables read or written?
What is the sas data set? : sas-grid-administration
Difference between nodup and nodupkey options?
How are numeric and character missing values represented internally?
what techniques and/or procs do you use for tables? : Sas programming
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
what is sas and what are the functions? : Sas-administrator
How would you define the end of a macro?
Describe what are the different levels of administrative users in sas? : sas-grid-administration
What is the difference between nodupkey and nodup options?
how to change the execute of macro
describe about physical data integration? : Sas-di