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


Please Help Members By Posting Answers For Below Questions

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??

2392


How does proc sql work?

864


What is PDV?

939


How do you control the number of observations and/or variables read or written?

1045


What is the sas data set? : sas-grid-administration

798


Difference between nodup and nodupkey options?

915


How are numeric and character missing values represented internally?

1422


what techniques and/or procs do you use for tables? : Sas programming

838


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.

2054


what is sas and what are the functions? : Sas-administrator

788


How would you define the end of a macro?

914


Describe what are the different levels of administrative users in sas? : sas-grid-administration

824


What is the difference between nodupkey and nodup options?

828


how to change the execute of macro

1973


describe about physical data integration? : Sas-di

813