A FileTransfer
Control
enables
a user to select a registered model. Once the user selects a registered
model, a collection of data sets and an external file are generated.
These data sets and external file provide you with access to information
about the registered model. The XML syntax for this Property
and Control
configuration
is as follows:
<Property
type="String"
name="ModelSelector"
displayName="Model Selector"
description="Dialog to select a registered model.">
<Control>
<FileTransfer action="ImportModel" filename=""/>
</Control>
</Property>
There is a single Control
element
with a nested FileTransfer
element. The FileTransfer
element
has two attributes: action
and filename
.
Copy the syntax for this Control
verbatim.
The following server
code is required for a FileTransfer
Control
.
Copy this code verbatim in your extension node's code.
%em_register(key=MODELINFO, type=DATA, property=Y);
%em_register(key=MODELINPUT, type=DATA, property=Y);
%em_register(key=MODELOUTPUT, type=DATA, property=Y);
%em_register(key=MODELSTAT, type=DATA, property=Y);
%em_register(key=MODELTRAINING, type=DATA, property=Y);
%em_register(key=MODELTARGET, type=DATA, property=Y);
%em_register(key=MODELSCORE, type=FILE, extension=sas, property=Y);
When a user clicks on
the
icon next to the Model Selector property, a dialog
box appears that enables them to select a registered model. The name
of the registered model then appears in the Value column of the Properties
panel next to the Model Selector property. Six SAS data sets and a
single external file are created. The SAS data sets are created in
the EMWS library for the user's project. The external file is created
in the extension node's directory for that particular process flow
diagram.
For example, if the
extension node's prefix is EXMPL, then the following seven data sets
and files are created:
-
Emws.Exmpl_modelinfo — SAS
data set containing metadata for the model
-
Emws.Exmpl_modelinput —
SAS data set containing metadata for the model inputs
-
Emws.Exmpl_modeloutput —
SAS data set containing metadata for the model outputs
-
Emws.Exmpl_modelstat — SAS
data set containing fit statistics for the model
-
Emws.Exmpl_modeltraining —
SAS data set containing metadata for the input data source
-
Emws.Exmpl_modeltarget —
SAS data set containing metadata for the target variable
-
Modelscore.sas — external
file containing the score code of the registered model