Search Results

5 résultats trouvés Page 1 / 1
Code SAS
Voir

Stop Overwriting Your Data: How to Perform In-Place Updates with table.update

This functionality allows modifying existing row values in a CAS table using the `table.update` action. It supports updating specific columns, applying conditions with WHERE clauses, and using expressions to define new values.

Code SAS
Voir

Stop Overwriting Your Data: How to Perform In-Place Updates with table.update

data mycas.produits; length NomProduit $30 Categorie $20 Statut $10; input NomProduit Categorie Prix Statut $; datalines; Ordinateur Portable Electronique 1200 EnStock Smartphone Electronique 800 EnStock Souris Accessoire 25 EnStock Clavier Accessoire 75 Rupture Ecran Electronique 300...

Code SAS
Voir

Stop Overwriting Your Data: How to Perform In-Place Updates with table.update

proc cas; session casauto; table.update / table='produits', where="Statut = 'Rupture'", set={ {var='Prix', value='Prix * 0.90'}, {var='Statut', value="'EnStock'"} }; table.fetch / table='produits'; quit;

Code SAS
Voir

Stop Overwriting Your Data: How to Perform In-Place Updates with table.update

%let CATEGORIE_CIBLE = 'Electronique'; %let POURCENTAGE_AUGMENTATION = 1.15; proc cas; session casauto; table.update / table='produits', where="Categorie = &CATEGORIE_CIBLE.", set={ {var='Prix', value="Prix * &POURCENTAGE_AUGMENTATION."}, {var='NomProd...

Code SAS
Voir

Stop Overwriting Your Data: How to Perform In-Place Updates with table.update

data mycas.stock_produits; length NomProduit $30 Stock Initial $10; input NomProduit Stock $; datalines; Ordinateur Portable 10 Smartphone 50 Souris 200 Clavier 0 Ecran 30 Tablette 5 ; run; proc cas; session casauto; table.promote / caslib='mycas' name='stock_produits'; ...