Chapter Contents

Previous

Next
SAS Component Language: Reference

Submitting Statements Compared to Using SCL Features

You should submit statements when the task you want to perform is difficult or impossible using SCL features alone. Whenever equivalent SCL features are available, it is more efficient to use them than to submit SAS statements. For example, the following two sets of statements produce the same result, opening an FSEDIT window to display the SAS data table WORK.DATA1 for editing:

   /* This uses the SCL Feature. */
call fsedit('work.data1');
   /* This uses submitted statements. */
submit continue;
   proc fsedit data=work.data1;
   run;
endsubmit;

From within an application, fewer computer resources are required to execute the CALL routine in SCL than to submit statements to SAS software. Thus, the CALL routine is a better choice unless you need features of the procedure that the CALL routine does not provide (for example, the VAR statement in PROC FSEDIT to select which variables to display to the user).


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.