?> How are variables defined when using the addTable ... - Aide
QUESTION / RÉPONSE

How are variables defined when using the addTable action?

1 consultations

Réponse

Variables are defined using the 'vars' parameter, which is a list of objects. Each object must specify the variable's 'name', 'rType' (raw type, OBSOLETE), 'length', and 'offset' (OBSOLETE). Optional attributes include 'label', 'format', and 'type' (e.g., 'VARCHAR', 'INT64').
Action technique liée

Voir la documentation de addTable

Voir l'Action

Voir aussi

addCaslibSubdir
table

The `addCaslibSubdir` action creates a new subdirectory within the physical path of an existing caslib. This is particularly useful for organizing data sources and other files within a caslib's storage without needing direct file system access. The action allows specifying permissions for the new subdirectory, ensuring proper access control from the moment of creation.

append
table

Ajoute les lignes d'une table source à la fin d'une table cible en mémoire. Cette action est particulièrement utile pour consolider des données provenant de différentes sources ou pour agréger des lots de données dans une table principale sans avoir à recréer entièrement la table.

alterTable
table

The alterTable action allows for modifying the metadata and properties of an in-memory CAS table. This includes renaming the table, changing its label, modifying column properties such as names, labels, and formats, as well as dropping columns or reordering them. It is a versatile tool for managing table structures directly on the CAS server without needing to recreate tables.