?>
Voir la documentation de addFormat
L'action `addFmtLib` est une action de la catégorie 'Session Properties' dans SAS Viya. Elle permet d'ajouter une bibliothèque de formats définie par l'utilisateur à la session CAS active. Cette bibliothèque peut être vide et créée à la volée, ou provenir d'une table de contrôle de formats (créée par PROC FORMAT) préalablement chargée dans CAS. Une fois ajoutée, les formats de cette bibliothèque peuvent être utilisés pour formater les valeurs des variables dans les tables CAS lors des analyses et des affichages de résultats.
Adds a format library to the current CAS session. This allows user-defined formats to be used in analyses and data manipulation within CAS. Format libraries can be loaded from a caslib (as a SASHDAT file) or directly from a server path. This action is crucial for customizing data representation and reporting in Viya.
The `addFormat` action is a powerful tool within the `sessionProp` action set. It allows for the dynamic creation and addition of a new user-defined format to a specified format library within the current CAS session. This is particularly useful for creating custom data representations on-the-fly without needing to pre-define them in a SAS catalog. You can define simple value mappings or complex ranges, and even create picture formats for detailed numeric formatting. The created formats are immediately available for use in the session where they were defined.