Hi Bhav.
I think the interactive procedures come from the Old Times where it had a real cost to retype parts of programs. The idea behind interactive procs is to easily follow a trial-and-error process ; submit a first draft, see how it turns out, and then a second test, and so on. This is why Datasets, SAS/Graph and some statistical procedures (such as Proc Reg & GLM) are thought this way.
For example :
[pre]
PROC GCHART DATA = sashelp.class ;
VBAR age ;
RUN ;
/* well, as I see the output, it lacks a DISCRETE statement */
VBAR age / DISCRETE ;
RUN ;
/* I'd better do sub-bars from sex */
VBAR age / DISCRETE SUBGROUP=sex ;
RUN ;
/* and so on ... */
QUIT ; /* this is the real end of the Gchart procedure */
[/pre]
It is quite different for IML and SQL procedures : since you are coding in a different language, the QUIT statement is here to inform SAS that we are coming back to its "usual" programming language.
Cheers,
Olivier
... View more