SAS Model Studio users can import SAS Forecast Server projects for use in SAS Viya 4.
|
A project in SAS Forecast Studio has a custom event with the name EASTER, which is the name of a predefined event. The forecaster imports the project to SAS Visual Forecasting. The project is imported successfully with the custom event EASTER. The forecaster opens the Migration Report and sees all of the custom events were imported.
The forecaster opens the project and examines the events on the Data tab. The imported events are listed in the imported table. For the predefined events, EASTER is missing. If the forecaster wants to include the predefined event EASTER, a custom event must be defined as described in Creating Events for a SAS Visual Forecasting Project.
The new custom event with Easter Day can be used in the project. |
First
value, Last
value, Median of
values, Total number of
values.If you choose to use the data source in the FAR file during migration, a unique suffix is appended to the name of the data source for the project that is being migrated. It is common for multiple projects to share the same data source. This makes it possible to have multiple copies of the original data source. This duplication of project data is likely to occur when batch importing multiple projects.
If projects are using multiple copies of the same data source, you can set the projects to use a single data source. You can then remove the duplicate data sets to reduce the impact to memory on the CAS server. For more information, see Replacing the Source Data Set for a Project.
After a project has been migrated, a
pipeline is created with a Hierarchical Forecasting (Migrated) node. This node also
displays to indicate that it represents the migrated SAS Forecast Server
project.
These steps are for importing archive projects that have been exported using SAS Forecast Project Manager.
The Import Forecasting Project window is displayed.
You have two options.
To create a new folder, select
My Folder on the left and
then click in the upper right corner.
Select the folder to store the project and click OK to return to the Import Forecasting Project window.
My Folder or a folder
that you or your system administrator has created for your
use.The import process has
started. You will be notified when the import is
complete.
When importing projects
from SAS Forecast
Server, the following hierarchy aggregation and time accumulationeither of two processes that are used to convert a time series. (1) Accumulation converts
a time series that has no fixed interval into a time series that does have a fixed
interval (such as hourly or monthly). (2) Accumulation converts a time series that
has a fixed interval into a time series with a lower frequency time interval (such
as hourly into daily). Accumulation combines data within the same time interval into
a summary value for that time period. values are not supported. The imported project sets these values to
Sum of values.
If you have imported any overrides, they must be resubmitted after the pipeline completes.
If you have many projects that need to be imported
from SAS Forecast Studio to SAS Visual Forecasting, use SAS Content Assessment to export all of the projects to the FAR file format. This application must be run by the account that was used to install
and configure SAS software (Installer user account) on the SAS 9.4 system. For
more information about this package, see Understanding Content Assessment in SAS Content Assessment.
After you have downloaded and extracted the latest SAS Content Assessment to the SAS 9.4 system, you can use these general steps to export all of the SAS Forecast Server projects.
.\profileContent.exe --generate-content-list
The contentToBeProfiled.yaml file lists each type of SAS object to be profiled. For more information about the profileContent command, see Executing the Profile Application in SAS Content Assessment.
Forecast Server Projects remains
in the file when you save it..\profileContent.exe --use-content-list
All of the SAS objects are saved to the /assessment/datamart/profile/metadatalabel_value directory. The SAS Forecast Server projects are located in fs_projects.sas7bdat.
See metaparms.sas in SAS Content Assessment for more information.
.\publishAssessedContent.exe --datamart-type profile
This aggregates and publishes your data marts. Publishing is a required process for all SAS Content Assessment actions. Resulting data sets are tagged to indicate what deployment they are associated with.
For more information about the publishAssessedContent command, see Executing the Publish Application in SAS Content Assessment.

The Export Data window is displayed.
Forecast Server: Administrator account..\createFARPackages.exe
--source-file filename.csv.
The FAR files are created and saved to /assessment/FARPackages.
/assessment/FARPackages/Production/Default
Subsequent runs of the createFARPackages command delete any FAR files that might have been previously created.
The SAS Viya platform provides a command-line interface (CLI) to batch import all of the projects that you have exported from SAS Forecast Server,
To perform this task, you need to download and extract the SAS Content Assessment tool and the SAS Viya CLI. The SAS Viya CLI used in these steps is supported only for Windows and Linux.
Before you start this task, you need to determine the location of the trusted certificate. Contact the SAS administrator if you need any assistance. For more information about the trusted certificate, see Provide the Path to Your Bundle of Trusted CA Certificates in SAS Viya Platform: Using the Command-Line Interface.
After you have followed the steps in Creating Multiple Project Archives from SAS Forecast Studio, you can import all of the projects to the SAS Viya platform using these instructions.
sas-viya.exe plugins install --repo SAS visual-forecasting
importFARPackages.exe --create-profile --sas-viya-path path_to_sas-viya.exe
--source-location ../assessment/FARPackages
--destination-caslib MyCaslib
--destination-cas-server cas-shared-default
The
--source-location argument is required to specify the
location of the project archives exported from SAS Forecast Server,
after following the steps in Creating Multiple Project Archives from SAS Forecast Studio.
As an alternative, you can specify a CSV file for the source location. The CSV file must contain the source location of the project archives and optional values for the destination caslib and CAS server. The CSV file has a three-column format. The column names are case insensitive and are shown in the first line in this example.
location,caslib,CAS server
..\migration\far-files\Multiple_CityDay.far,Public,cas-shared-default
..\migration\far-files\Sales.far,MyCaslib,cas-shared-default
..\migration\far-files\PriceData_Shared.far,MyCaslib,cas-shared-default
The CSV can be used when you need to import multiple FAR files in batch but specify different caslibs and CAS servers for the input data set for each project. The example above shows how to import three FAR files, two of them using a separate caslib (MyCaslib). The input data set for all three projects are set to use the same CAS server.
The optional arguments are described below. The values for these arguments are used if they are not specified in the CSV. If a different value is specified in the CSV, then that value overrides the specification from the command line.
--destination-caslib optional argument that specifies the destination caslib for the input data set to if you do not want it to be saved in the default caslib.
--destination-cas-server optional argument that specifies the destination CAS server for the input data set if you do not want it to be saved to the default server.
After this command is issued, a series of messages follow that detail the processing of this command.
Enter the Service Endpoint:,
enter the endpoint name for your deployment for the SAS
Viya platform, for example:
https://production.example.com
You are prompted to enter the fully qualified path to the trusted certificate for the deployment.
The remaining messages indicate the number of FAR files that are being imported and lists each file individually as they are imported.
Log in to SAS Model Studio to view the projects that have been imported. See Viewing the Migration Report to determine the results of the import for any of these projects.
After using SAS Content Assessment to create FAR files to import from SAS Forecast Server, you can selectively import single FAR files rather than importing all of them at once. Use the visual-forecasting plug-in for the SAS Viya CLI to import individual FAR files.
sas-viya.exe plugins install --repo SAS visual-forecasting
sas-viya.exe profile init --sas-endpoint https://production.example.com --colors-enabled --output json
For more information, see Command-Line Interface: Instructions when Downloading the CLI in SAS Viya Platform: Using the Command-Line Interface.
sas-viya.exe auth login --user username --password password
sas-viya.exe visual-forecasting import --file path_to_FAR_file
--dc MyCaslib --ds cas-shared-default
These arguments are optional:
--dc specifies the caslib to import the input
data set if you do not want it to be saved in the default
caslib.--ds
specifies the CAS server to save the input data set to.When the migration of a SAS Forecast Server project is complete, the project tile is displayed on the Projects page in SAS Model Studio. The success of the project migration is shown by these indicators on the project tiles.
After the import of a project fails,
the project shows on the page. If you switch to Table view, the data source for
the project is displayed as -.-.
Follow these steps to open the migration report for a project.
This opens the Migration Report window.
Private in the
report. You need to re-create the permissions for the project.
See Sharing Projects for complete instructions. The left side of the window lists the components of the project. Beside each component is one of these status icons:
It is common to see this icon with filters that are skipped. Some filters are skipped because they were created internally by SAS Forecast Server and are not used by SAS Visual Forecasting.