Table Action Set: Syntax
Provides actions for accessing and managing data
alterTable Action
Rename tables, change labels and formats, drop columns.
| See: | Altering Tables |
|---|---|
| Example: | Modify Columns in a Table |
CASL Syntax
Parameter Descriptions
caslib="string"
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.
columnOrder={"variable-name-1" <, "variable-name-2", ...>}
specifies the order of columns in table metadata.
| Alias | order |
|---|
columns={{AlterTableColumn-1} <, {AlterTableColumn-2}, ...>}
specifies how to alter columns. After you specify the column name, you can drop a column or assign a new format, label, or name. Columns are renamed before the drop, keep, or columnOrder parameters are evaluated.
The AlterTableColumn value can be one or more of the following:
binaryType="IMAGE" | "NONE" | "SOUND" | "VIDEO"
drop=TRUE | FALSE
| Default | FALSE |
|---|
format="string"
label="string"
* name="variable-name"
newType="VARBINARY" | "VARCHAR"
rename="string"
drop={"variable-name-1" <, "variable-name-2", ...>}
Columns to drop
keep={"variable-name-1" <, "variable-name-2", ...>}
Columns to keep
label="string"
specifies a new label for the table.
lifetime=64-bit-integer
specifies the number of seconds to keep the table in memory after it is last accessed. The table is dropped if it is not accessed for the specified number of seconds.
| Minimum value | 0 |
|---|
* name="table-name"
specifies the table name.
| Alias | table |
|---|
rename="string"
specifies a new name for the table.
alterTable Action
Rename tables, change labels and formats, drop columns.
| See: | Altering Tables |
|---|---|
| Example: | Modify Columns in a Table |
Lua Syntax
Parameter Descriptions
caslib="string"
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.
columnOrder={"variable-name-1" <, "variable-name-2", ...>}
specifies the order of columns in table metadata.
| Alias | order |
|---|
columns={{AlterTableColumn-1} <, {AlterTableColumn-2}, ...>}
specifies how to alter columns. After you specify the column name, you can drop a column or assign a new format, label, or name. Columns are renamed before the drop, keep, or columnOrder parameters are evaluated.
The AlterTableColumn value can be one or more of the following:
binaryType="IMAGE" | "NONE" | "SOUND" | "VIDEO"
drop=true | false
| Default | false |
|---|
format="string"
label="string"
* name="variable-name"
newType="VARBINARY" | "VARCHAR"
rename="string"
drop={"variable-name-1" <, "variable-name-2", ...>}
Columns to drop
keep={"variable-name-1" <, "variable-name-2", ...>}
Columns to keep
label="string"
specifies a new label for the table.
lifetime=64-bit-integer
specifies the number of seconds to keep the table in memory after it is last accessed. The table is dropped if it is not accessed for the specified number of seconds.
| Minimum value | 0 |
|---|
* name="table-name"
specifies the table name.
| Alias | table |
|---|
rename="string"
specifies a new name for the table.
alterTable Action
Rename tables, change labels and formats, drop columns.
| See: | Altering Tables |
|---|---|
| Example: | Modify Columns in a Table |
Python Syntax
Parameter Descriptions
caslib="string"
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.
columnOrder=["variable-name-1" <, "variable-name-2", ...>]
specifies the order of columns in table metadata.
| Alias | order |
|---|
columns=[{AlterTableColumn-1} <, {AlterTableColumn-2}, ...>]
specifies how to alter columns. After you specify the column name, you can drop a column or assign a new format, label, or name. Columns are renamed before the drop, keep, or columnOrder parameters are evaluated.
The AlterTableColumn value can be one or more of the following:
"binaryType":"IMAGE" | "NONE" | "SOUND" | "VIDEO"
"drop":True | False
| Default | False |
|---|
"format":"string"
"label":"string"
* "name":"variable-name"
"newType":"VARBINARY" | "VARCHAR"
"rename":"string"
drop=["variable-name-1" <, "variable-name-2", ...>]
Columns to drop
keep=["variable-name-1" <, "variable-name-2", ...>]
Columns to keep
label="string"
specifies a new label for the table.
lifetime=64-bit-integer
specifies the number of seconds to keep the table in memory after it is last accessed. The table is dropped if it is not accessed for the specified number of seconds.
| Minimum value | 0 |
|---|
* name="table-name"
specifies the table name.
| Alias | table |
|---|
rename="string"
specifies a new name for the table.
alterTable Action
Rename tables, change labels and formats, drop columns.
| See: | Altering Tables |
|---|---|
| Example: | Modify Columns in a Table |
R Syntax
Parameter Descriptions
caslib="string"
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.
columnOrder=list("variable-name-1" <, "variable-name-2", ...>)
specifies the order of columns in table metadata.
| Alias | order |
|---|
columns=list( list(AlterTableColumn-1) <, list(AlterTableColumn-2), ...>)
specifies how to alter columns. After you specify the column name, you can drop a column or assign a new format, label, or name. Columns are renamed before the drop, keep, or columnOrder parameters are evaluated.
The AlterTableColumn value can be one or more of the following:
binaryType="IMAGE" | "NONE" | "SOUND" | "VIDEO"
drop=TRUE | FALSE
| Default | FALSE |
|---|
format="string"
label="string"
* name="variable-name"
newType="VARBINARY" | "VARCHAR"
rename="string"
drop=list("variable-name-1" <, "variable-name-2", ...>)
Columns to drop
keep=list("variable-name-1" <, "variable-name-2", ...>)
Columns to keep
label="string"
specifies a new label for the table.
lifetime=64-bit-integer
specifies the number of seconds to keep the table in memory after it is last accessed. The table is dropped if it is not accessed for the specified number of seconds.
| Minimum value | 0 |
|---|
* name="table-name"
specifies the table name.
| Alias | table |
|---|
rename="string"
specifies a new name for the table.