Search Results

36 résultats trouvés Page 1 / 4
Exemple
Voir

Promoting the Output Table for Global Access

proc cas; action builtins.actionSetToTable / actionSet='myCustomActions' casOut={name='actions_definition_table', caslib='casuser', promote=true}; run; action table.tableInfo / name='actions_definition_table'; run; quit;

Exemple
Voir

Backup to In-Memory CAS Tables

proc cas; accessControl.assumeRole / adminRole='superuser'; accessControl.createBackup / tables=true; table.tableInfo / caslib='casuser'; run;

Code SAS
Voir

Mastering table.tableInfo: How to Search, Filter, and Manage CAS Tables Like a Pro

Displays detailed information about a CAS table, including metadata such as structure, number of rows, and other properties. This action is part of the 'table' action set.

Code SAS
Voir

Definition and Management of User-Defined CAS Actions

cas; caslib _all_ assign; /* Orginal code authored by Chris Ricciardi */ /* TB, compressedKB,compressedMB,compressedGB,compressedTB added by Steven Sober */ /* You must modify the path in the CASLIB USDA at the bottom of the code */ proc cas; builtins.defineActionSet / name="tableSizeHu...

Code SAS
Voir

Greenplum Data Connector

/* Créer une table CAS factice pour simuler des données Greenplum (si non existantes) */ data casuser.myGPdata; input ID Name $ Value; datalines; 1 John 100 2 Jane 150 3 Mike 200 4 Sarah 120 ; run; /* Définir une caslib Greenplum (assumant qu'elle est déjà définie et ...

Code SAS
Voir

Load a CSV File from a GZ Archive

/* Préparation requise par l'utilisateur: */ /* Créez un fichier 'sample_data_error.csv' avec un format intentionnellement incorrect (ex: ligne manquante ou colonne supplémentaire) */ /* id,name,value */ /* 1,Alice,100 */ /* 2,Bob,150,extra */ /* 3,Charlie */ /* Compressez-le: `gzip sample_data_e...

Code SAS
Voir

Sans titre

libname mycas cas; /* Crée un jeu de données SAS dans la bibliothèque WORK */ data work.sample_data; set sashelp.class; keep name sex age; run; /* Charge le jeu de données SAS dans CAS (caslib par défaut: CASUSER) */ proc casutil; load casdata="sample_data" casout="sample_data_cas" ...

Code SAS
Voir

Sans titre

libname mycas cas; /* Création d'un jeu de données SAS local à charger */ data work.orders_local; input OrderID Customer $ Amount; datalines; 1001 Alice 250.00 1002 Bob 120.50 1003 Alice 300.00 1004 Charlie 80.25 ; run; /* Charge le jeu de données SAS dans une caslib spécifique et le pr...

Code SAS
Voir

Mastering SAS Viya Syntax: How to Use Parameter Coercion for Cleaner CASL Code

proc cas; session casauto; /* S'assurer que la caslib 'casuser' existe et est active */ caslib _all_ assign; /* Créer une table SAS locale pour l'exemple */ data work.local_data; input id name $; datalines; 1 Alpha 2 Beta 3 Gamma ; run; /* Charger la tab...

Code SAS
Voir

SAS Viya Data Lifecycle: How to Upload, Persist, and Drop CAS Tables with PROC CAS

data _null_; file _webout; put 'Nom,Age,Ville'; put 'Alice,30,Paris'; put 'Bob,24,Lyon'; put 'Charlie,35,Marseille'; run; %let data_csv_file = '/tmp/simple_data.csv'; filename _csv_ temp filevar=_webout; data _null_; file _csv_; input; put _infile_; run; proc cas; ...