Simple Analytics Action Set: Syntax
Provides actions for performing basic analytic functions
topK Action
Returns the top-K and bottom-K distinct values of each variable included in the variable list based on a user-specified ranking order.
| See: | Results |
|---|---|
| Example: | Get the Top-K and Bottom-K Distinct Values for Multiple Variables |
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies an input table that contains the groups to use in a group-by analysis. | |
|
required parametertable |
— |
specifies the table name, caslib, and other common parameters. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the settings for an output table. |
Parameter Descriptions
aggregator="MAX" | "MEAN" | "MIN" | "N" | "SUM"
specifies the aggregator for which the variables in the weight parameter are rolled up into rank order score, if the weight parameter is specified.
| Alias | agg |
|---|---|
| Default | SUM |
attributes={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variable attributes.
For more information about specifying the attributes parameter, see the common casinvardesc parameter.
| Aliases | attribute |
|---|---|
| attrs | |
| attr | |
| varAttrs |
bottomK=integer
specifies the maximum number of distinct values included in the bottom-K list.
| Aliases | k2 |
|---|---|
| btmK | |
| Default | 1 |
| Range | 0–MACINT |
casOut={casouttable}
specifies the settings for an output table.
For more information about specifying the casOut parameter, see the common casouttable parameter.
freq="variable-name"
specifies the numeric frequency variable used to compute the rank order score of a distinct value.
| Alias | frequency |
|---|
groupByLimit=64-bit-integer
specifies the maximum number of levels in a group-by set. When the server determines this number of levels, the server stops and does not return a result. Specify this parameter if you want to avoid creating large result sets in group-by operations.
| Minimum value | 1 |
|---|
groupbyTable={groupbytable}
specifies an input table that contains the groups to use in a group-by analysis.
| Long form | groupbyTable={name="table-name"} |
|---|---|
| Shortcut form | groupbyTable="table-name" |
The groupbytable value can be one or more of the following:
casLib="string"
specifies the caslib for the filter table. By default, the active caslib is used.
dataSourceOptions={adls_noreq-parameters | bigquery-parameters | cas_noreq-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | fedsvr-parameters | gcs_noreq-parameters | hadoop-parameters | hana-parameters | impala-parameters | informix-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sapiq-parameters | sforce-parameters | singlestore_standard-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | ss_noreq-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter.
importOptions={fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
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="table-name"
specifies the name of the filter table.
where="where-expression"
specifies an expression for subsetting the data from the filter table.
includeMisc=TRUE | FALSE
when set to True, miscellaneous information is included in the result.
| Default | TRUE |
|---|
includeMissing=TRUE | FALSE
when set to True, missing values are included in the determination of the top-K and bottom-K distinct values.
| Default | TRUE |
|---|
inputs={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the input variables for the analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter.
| Alias | input |
|---|
maxTie=integer
specifies maximum number of distinct values to be included in the result whose ranking score is tied with that of the Kth distinct value.
| Default | 0 |
|---|---|
| Range | 0–MACINT |
raw=TRUE | FALSE
when set to True, the raw values are used for the variables.
| Default | FALSE |
|---|
* table={castable}
specifies the table name, caslib, and other common parameters.
For more information about specifying the table parameter, see the common castable parameter.
tieEps=double
specifies the epsilon used to determine tied ranking scores.
| Default | 0 |
|---|---|
| Range | 0–MACBIG |
topK=integer
specifies the maximum number of distinct values included in the top-K list.
| Alias | k1 |
|---|---|
| Default | 1 |
| Range | 0–MACINT |
weight="variable-name"
specifies the numeric weight variable used to compute the result set.
topK Action
Returns the top-K and bottom-K distinct values of each variable included in the variable list based on a user-specified ranking order.
| See: | Results |
|---|---|
| Example: | Get the Top-K and Bottom-K Distinct Values for Multiple Variables |
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies an input table that contains the groups to use in a group-by analysis. | |
|
required parametertable |
— |
specifies the table name, caslib, and other common parameters. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the settings for an output table. |
Parameter Descriptions
aggregator="MAX" | "MEAN" | "MIN" | "N" | "SUM"
specifies the aggregator for which the variables in the weight parameter are rolled up into rank order score, if the weight parameter is specified.
| Alias | agg |
|---|---|
| Default | SUM |
attributes={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the variable attributes.
For more information about specifying the attributes parameter, see the common casinvardesc parameter.
| Aliases | attribute |
|---|---|
| attrs | |
| attr | |
| varAttrs |
bottomK=integer
specifies the maximum number of distinct values included in the bottom-K list.
| Aliases | k2 |
|---|---|
| btmK | |
| Default | 1 |
| Range | 0–MACINT |
casOut={casouttable}
specifies the settings for an output table.
For more information about specifying the casOut parameter, see the common casouttable parameter.
freq="variable-name"
specifies the numeric frequency variable used to compute the rank order score of a distinct value.
| Alias | frequency |
|---|
groupByLimit=64-bit-integer
specifies the maximum number of levels in a group-by set. When the server determines this number of levels, the server stops and does not return a result. Specify this parameter if you want to avoid creating large result sets in group-by operations.
| Minimum value | 1 |
|---|
groupbyTable={groupbytable}
specifies an input table that contains the groups to use in a group-by analysis.
| Long form | groupbyTable={name="table-name"} |
|---|---|
| Shortcut form | groupbyTable="table-name" |
The groupbytable value can be one or more of the following:
casLib="string"
specifies the caslib for the filter table. By default, the active caslib is used.
dataSourceOptions={adls_noreq-parameters | bigquery-parameters | cas_noreq-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | fedsvr-parameters | gcs_noreq-parameters | hadoop-parameters | hana-parameters | impala-parameters | informix-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sapiq-parameters | sforce-parameters | singlestore_standard-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | ss_noreq-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter.
importOptions={fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
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="table-name"
specifies the name of the filter table.
where="where-expression"
specifies an expression for subsetting the data from the filter table.
includeMisc=true | false
when set to True, miscellaneous information is included in the result.
| Default | true |
|---|
includeMissing=true | false
when set to True, missing values are included in the determination of the top-K and bottom-K distinct values.
| Default | true |
|---|
inputs={{casinvardesc-1} <, {casinvardesc-2}, ...>}
specifies the input variables for the analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter.
| Alias | input |
|---|
maxTie=integer
specifies maximum number of distinct values to be included in the result whose ranking score is tied with that of the Kth distinct value.
| Default | 0 |
|---|---|
| Range | 0–MACINT |
raw=true | false
when set to True, the raw values are used for the variables.
| Default | false |
|---|
* table={castable}
specifies the table name, caslib, and other common parameters.
For more information about specifying the table parameter, see the common castable parameter.
tieEps=double
specifies the epsilon used to determine tied ranking scores.
| Default | 0 |
|---|---|
| Range | 0–MACBIG |
topK=integer
specifies the maximum number of distinct values included in the top-K list.
| Alias | k1 |
|---|---|
| Default | 1 |
| Range | 0–MACINT |
weight="variable-name"
specifies the numeric weight variable used to compute the result set.
topK Action
Returns the top-K and bottom-K distinct values of each variable included in the variable list based on a user-specified ranking order.
| See: | Results |
|---|---|
| Example: | Get the Top-K and Bottom-K Distinct Values for Multiple Variables |
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies an input table that contains the groups to use in a group-by analysis. | |
|
required parametertable |
— |
specifies the table name, caslib, and other common parameters. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the settings for an output table. |
Parameter Descriptions
aggregator="MAX" | "MEAN" | "MIN" | "N" | "SUM"
specifies the aggregator for which the variables in the weight parameter are rolled up into rank order score, if the weight parameter is specified.
| Alias | agg |
|---|---|
| Default | SUM |
attributes=[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies the variable attributes.
For more information about specifying the attributes parameter, see the common casinvardesc parameter.
| Aliases | attribute |
|---|---|
| attrs | |
| attr | |
| varAttrs |
bottomK=integer
specifies the maximum number of distinct values included in the bottom-K list.
| Aliases | k2 |
|---|---|
| btmK | |
| Default | 1 |
| Range | 0–MACINT |
casOut={casouttable}
specifies the settings for an output table.
For more information about specifying the casOut parameter, see the common casouttable parameter.
freq="variable-name"
specifies the numeric frequency variable used to compute the rank order score of a distinct value.
| Alias | frequency |
|---|
groupByLimit=64-bit-integer
specifies the maximum number of levels in a group-by set. When the server determines this number of levels, the server stops and does not return a result. Specify this parameter if you want to avoid creating large result sets in group-by operations.
| Minimum value | 1 |
|---|
groupbyTable={groupbytable}
specifies an input table that contains the groups to use in a group-by analysis.
| Long form | groupbyTable={"name":"table-name"} |
|---|---|
| Shortcut form | groupbyTable="table-name" |
The groupbytable value can be one or more of the following:
"casLib":"string"
specifies the caslib for the filter table. By default, the active caslib is used.
"dataSourceOptions":{adls_noreq-parameters | bigquery-parameters | cas_noreq-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | fedsvr-parameters | gcs_noreq-parameters | hadoop-parameters | hana-parameters | impala-parameters | informix-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sapiq-parameters | sforce-parameters | singlestore_standard-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | ss_noreq-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters}
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter.
"importOptions":{"fileType":"ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters}
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":"table-name"
specifies the name of the filter table.
"where":"where-expression"
specifies an expression for subsetting the data from the filter table.
includeMisc=True | False
when set to True, miscellaneous information is included in the result.
| Default | True |
|---|
includeMissing=True | False
when set to True, missing values are included in the determination of the top-K and bottom-K distinct values.
| Default | True |
|---|
inputs=[{casinvardesc-1} <, {casinvardesc-2}, ...>]
specifies the input variables for the analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter.
| Alias | input |
|---|
maxTie=integer
specifies maximum number of distinct values to be included in the result whose ranking score is tied with that of the Kth distinct value.
| Default | 0 |
|---|---|
| Range | 0–MACINT |
raw=True | False
when set to True, the raw values are used for the variables.
| Default | False |
|---|
* table={castable}
specifies the table name, caslib, and other common parameters.
For more information about specifying the table parameter, see the common castable parameter.
tieEps=double
specifies the epsilon used to determine tied ranking scores.
| Default | 0 |
|---|---|
| Range | 0–MACBIG |
topK=integer
specifies the maximum number of distinct values included in the top-K list.
| Alias | k1 |
|---|---|
| Default | 1 |
| Range | 0–MACINT |
weight="variable-name"
specifies the numeric weight variable used to compute the result set.
topK Action
Returns the top-K and bottom-K distinct values of each variable included in the variable list based on a user-specified ranking order.
| See: | Results |
|---|---|
| Example: | Get the Top-K and Bottom-K Distinct Values for Multiple Variables |
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies an input table that contains the groups to use in a group-by analysis. | |
|
required parametertable |
— |
specifies the table name, caslib, and other common parameters. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the settings for an output table. |
Parameter Descriptions
aggregator="MAX" | "MEAN" | "MIN" | "N" | "SUM"
specifies the aggregator for which the variables in the weight parameter are rolled up into rank order score, if the weight parameter is specified.
| Alias | agg |
|---|---|
| Default | SUM |
attributes=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies the variable attributes.
For more information about specifying the attributes parameter, see the common casinvardesc parameter.
| Aliases | attribute |
|---|---|
| attrs | |
| attr | |
| varAttrs |
bottomK=integer
specifies the maximum number of distinct values included in the bottom-K list.
| Aliases | k2 |
|---|---|
| btmK | |
| Default | 1 |
| Range | 0–MACINT |
casOut=list(casouttable)
specifies the settings for an output table.
For more information about specifying the casOut parameter, see the common casouttable parameter.
freq="variable-name"
specifies the numeric frequency variable used to compute the rank order score of a distinct value.
| Alias | frequency |
|---|
groupByLimit=64-bit-integer
specifies the maximum number of levels in a group-by set. When the server determines this number of levels, the server stops and does not return a result. Specify this parameter if you want to avoid creating large result sets in group-by operations.
| Minimum value | 1 |
|---|
groupbyTable=list(groupbytable)
specifies an input table that contains the groups to use in a group-by analysis.
| Long form | groupbyTable=list(name="table-name") |
|---|---|
| Shortcut form | groupbyTable="table-name" |
The groupbytable value can be one or more of the following:
casLib="string"
specifies the caslib for the filter table. By default, the active caslib is used.
dataSourceOptions=list(adls_noreq-parameters | bigquery-parameters | cas_noreq-parameters | clouddex-parameters | db2-parameters | dnfs-parameters | esp-parameters | fedsvr-parameters | gcs_noreq-parameters | hadoop-parameters | hana-parameters | impala-parameters | informix-parameters | jdbc-parameters | mongodb-parameters | mysql-parameters | odbc-parameters | oracle-parameters | path-parameters | postgres-parameters | redshift-parameters | s3-parameters | sapiq-parameters | sforce-parameters | singlestore_standard-parameters | snowflake-parameters | spark-parameters | spde-parameters | sqlserver-parameters | ss_noreq-parameters | teradata-parameters | vertica-parameters | yellowbrick-parameters)
specifies data source options.
| Aliases | options |
|---|---|
| dataSource |
For more information about specifying the dataSourceOptions parameter, see the common dataSourceOptions parameter.
importOptions=list(fileType="ANY" | "AUDIO" | "AUTO" | "BASESAS" | "CSV" | "DOCUMENT" | "DTA" | "ESP" | "EXCEL" | "FMT" | "HDAT" | "IMAGE" | "JMP" | "LASR" | "PARQUET" | "SPSS" | "VIDEO" | "XLS", fileType-specific-parameters)
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="table-name"
specifies the name of the filter table.
where="where-expression"
specifies an expression for subsetting the data from the filter table.
includeMisc=TRUE | FALSE
when set to True, miscellaneous information is included in the result.
| Default | TRUE |
|---|
includeMissing=TRUE | FALSE
when set to True, missing values are included in the determination of the top-K and bottom-K distinct values.
| Default | TRUE |
|---|
inputs=list( list(casinvardesc-1) <, list(casinvardesc-2), ...>)
specifies the input variables for the analysis.
For more information about specifying the inputs parameter, see the common casinvardesc parameter.
| Alias | input |
|---|
maxTie=integer
specifies maximum number of distinct values to be included in the result whose ranking score is tied with that of the Kth distinct value.
| Default | 0 |
|---|---|
| Range | 0–MACINT |
raw=TRUE | FALSE
when set to True, the raw values are used for the variables.
| Default | FALSE |
|---|
* table=list(castable)
specifies the table name, caslib, and other common parameters.
For more information about specifying the table parameter, see the common castable parameter.
tieEps=double
specifies the epsilon used to determine tied ranking scores.
| Default | 0 |
|---|---|
| Range | 0–MACBIG |
topK=integer
specifies the maximum number of distinct values included in the top-K list.
| Alias | k1 |
|---|---|
| Default | 1 |
| Range | 0–MACINT |
weight="variable-name"
specifies the numeric weight variable used to compute the result set.