Why do we use QUIT commmand for proc datasets and proc sql ???

Answers were Sorted based on User's Feedback



Why do we use QUIT commmand for proc datasets and proc sql ???..

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

Why do we use QUIT commmand for proc datasets and proc sql ???..

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

Why do we use QUIT commmand for proc datasets and proc sql ???..

Answer / charu tiwari

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

Post New Answer

More SAS Interview Questions

wat has been most common programming mistake?

3 Answers  


Why double trailing @@ is used in input statement?

0 Answers  


how to extract data from SAP servers? Is like oracle servers or any other methods to extract please reply me.

1 Answers  


what is the difference between SET and MERGE?

19 Answers   CitiGroup,


What is the purpose of trailing @ and @@? How do you use them?

0 Answers  






Do you need to combine data sets? How should you combine data sets– MERGE or SET statements in DATA steps,PROC APPEND,PROC SQL?

3 Answers  


Difference b/n proc means and proc summary procedures?

3 Answers   Accenture,


Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT

0 Answers  


How would you determine how far down on a page you have printed in order to print out footnotes?

3 Answers  


How would you remove a format that has been permanently associated with a variable? ________________

5 Answers   Quintiles, TCS,


How substr function works in sas?

0 Answers  


Difference between informat and format?

0 Answers  


Categories