SAS.SubmitCatalogEntry

Prototypes

static void SubmitCatalogEntry( String sEntrySpec )

Parameters

String sEntrySpec
A string of the form "CatalogName.LibraryName.MemberName" that specifies the catalog entry you want to submit to the SAS server for execution. It is not necessary to specify the entry type because IMLPlus automatically appends ".source" to the sEntrySpec parameter.

Remarks

This method submits a source entry in a SAS catalog to the SAS server for execution.

A sequence of SAS language statements that is submitted to a SAS server by an IMLPlus program must contain zero or more complete DATA or PROC steps. IMLPlus does not support submitting partial DATA or PROC steps. One notable exception to this rule is that it is acceptable to use the RUN statement to execute a PROC step, although the QUIT statement is preferred. If IMLPlus detects that a sequence of SAS language statements has left SAS in a DATA or PROC step, IMLPlus forces SAS to exit the step.

Example

Assume the SAS catalog entry SASUSER.MyCat.UnivariateStatistics.source exists and that it contains the following SAS language statements:

proc univariate data=&filespec noprint;
var &varname;
output out=results &statistic=outvar;
quit;

The following IMLPlus program makes use of the UnivariateStatistics entry:

run GetInstallationDirectory( path );
path = path + "Data Sets";
libname samples (path);

submit;
%let filespec = samples.baseball;
%let varname = NO_HOME;
%let statistic = skewness;
endsubmit;

SAS.SubmitCatalogEntry( "SASUSER.MyCat.UnivariateStatistics" );

use results;
read all var {"outvar"} into skewness;
close results;
print skewness;
See Also

SAS.SubmitFile
SAS.SubmitStatements