Explore. Share. Code.

The starting point for your SAS® and Viya™ projects

Articles
Technical Articles

Discover technical articles from the community

Code SAS
SAS® Code

Snippets & Tutorials

FAQ
Q&A Base

FAQ & Help

Scenarios
Scenarios

Business Use Cases

CAS Actions
CAS Actions

Full Catalog & Examples

Data Step
Data Step

Preparation Scripts

Python
Python

SAS & Python Integration

Blog
Blog

News, tech watch and site updates

Join the community

Participate in the life of the site

Community by the numbers

0
Documented Actions
0
Code Examples
0
Articles Techniques
0
Scénarios Métiers
0
Solved Questions

Random FAQ

Which parameter is used to define the input table for the analysis?

The 'table' parameter is required to specify the input data table for the action.

See answer
On: mca
How can I save the action history to an output table?

You can save the action history to an output table by using the 'casOut' parameter. This parameter specifies the settings for saving the history to an output table. For detailed information on its subparameters, refer to the common casouttable parameter documentation.

See answer
On: history
How can I filter the rows that are returned?

You can use the "where" parameter within the "table" parameter object to provide a filter expression.

See answer
On: fetch
nominals

specifies the nominal input variables to use in the analysis. For more information about specifying the nominals parameter, see the common casinvardesc parameter. Alias: nominal format: specifies the format to apply to the variable. formattedLength: specifies the length of the format field plus the length of the format precision. label: specifies the descriptive label for the variable. name: specifies the name for the variable. nfd: specifies the length of the format precision. nfl: specifies the length of the format field.

See answer
On: forestTrain
table

specifies the settings for an input table. Long form: table={name="table-name"} Shortcut form: table="table-name" The castable value can be one or more of the following: caslib: specifies the caslib for the input table that you want to use with the action. By default, the active caslib is used. Specify a value only if you need to access a table from a different caslib. computedOnDemand: when set to True, creates the computed variables when the table is loaded instead of when the action begins. Alias: compOnDemand Default: FALSE computedVars: specifies the names of the computed variables to create. Specify an expression for each variable in the computedVarsProgram parameter. If you do not specify this parameter, then all variables from computedVarsProgram are automatically included. Alias: compVars format: specifies the format to apply to the variable. formattedLength: specifies the length of the format field plus the length of the format precision. label: specifies the descriptive label for the variable. name: specifies the name for the variable. nfd: specifies the length of the format precision. nfl: specifies the length of the format field. computedVarsProgram: specifies an expression for each computed variable that you include in the computedVars parameter. Alias: compPgm dataSourceOptions: specifies data source options. Aliases: options, dataSource importOptions: specifies the settings for reading a table from a data source. Alias: import For more information about specifying the importOptions parameter, see the common importOptions parameter. name: specifies the name of the input table. singlePass: when set to True, does not create a transient table on the server. Setting this parameter to True can be efficient, but the data might not have stable ordering upon repeated runs. Default: FALSE vars: specifies the variables to use in the action. format: specifies the format to apply to the variable. formattedLength: specifies the length of the format field plus the length of the format precision. label: specifies the descriptive label for the variable. name: specifies the name for the variable. nfd: specifies the length of the format precision. nfl: specifies the length of the format field. where: specifies an expression for subsetting the input data. whereTable: specifies an input table that contains rows to use as a WHERE filter. If the vars parameter is not specified, then all the variable names that are common to the input table and the filtering table are used to find matching rows. If the where parameter for the input table and this parameter are specified, then this filtering table is applied first. casLib: specifies the caslib for the filter table. By default, the active caslib is used. dataSourceOptions: specifies data source options. Aliases: options, dataSource For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter. importOptions: specifies the settings for reading a table from a data source. Alias: import For more information about specifying the importOptions parameter, see the common importOptions parameter. name: specifies the name of the filter table. vars: specifies the variable names to use from the filter table. format: specifies the format to apply to the variable. formattedLength: specifies the length of the format field plus the length of the format precision. label: specifies the descriptive label for the variable. name: specifies the name for the variable. nfd: specifies the length of the format precision. nfl: specifies the length of the format field. where: specifies an expression for subsetting the data from the filter table.

See answer
On: forestTrain