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

How do you read in the variables that you need?

9 Answers   Accenture,


Given an unsorted data set, how to read the last observation to a new data set?

0 Answers  


How do you test for missing values?

0 Answers   Quintiles,


how to import XTP files into SAS datasets?

1 Answers   Barclays, Institute For Plasma Research,


what has been your most common programming mistake? : Sas programming

0 Answers  


I have 2 data sets A & B. Both have a variable called Age in them, each of them specifying a different functionality. In my program I use bot these data sets. How do I specify which Age variable I want to use?

6 Answers  


What are the functions done while Compilation...?

1 Answers   TCS,


How we can call macros with in data step? : sas-macro

0 Answers  


how are numeric and character missing values represented internally? : Sas programming

0 Answers  


What are pdv and it functions?

0 Answers  


what are sas/access and sas/connect? : Sas programming

0 Answers  


How many ways to overcome a missing values???

0 Answers   HSBC,


Categories