Search Results

36 résultats trouvés Page 3 / 4
Code SAS
Voir

Stop Losing Your PROC CAS Output: Master the SAVERESULT Statement

/* Démarre une session CAS */ proc cas; session casauto; caslib _all_ assign; /* Charge un jeu de données SASHELP dans CAS */ table.loadtable / caslib='casuser', path='Hmeq.sashdat', casout={name='hmeq_cas', replace=true}; /* Exécute une action CAS po...

Code SAS
Voir

Stop Losing Your PROC CAS Output: Master the SAVERESULT Statement

/* Démarre une session CAS */ proc cas; session casauto; caslib _all_ assign; /* Charge le jeu de données iris de SASHELP dans CAS */ table.loadtable / caslib='casuser', path='Iris.sashdat', casout={name='iris_cas', replace=true}; /* Crée une table fi...

Code SAS
Voir

Forget PROC IMPORT: The Fast Way to Upload Local CSVs to SAS Cloud

/* Configurez votre hôte et port CAS */ *options cashost="cloud.example.com" casport=5570; *cas casauto; /* URL d'un fichier CSV public */ %let data_url='http://support.sas.com/documentation/onlinedoc/viya/exampledatasets/classfit.csv'; filename temp_csv temp; /* Simule le téléchargement d'un f...

Code SAS
Voir

From Raw CSV to Formatted Table: The Efficient Way to Load Local Data to CAS

/* Création du fichier CSV local */ %LET CSV_FILE = /tmp/mydata_advanced_&sysdate._%sysfunc(compress(&systime.)).csv; %LET CAS_TABLE = mydata_advanced; %LET CAS_LIB = CASUSER; DATA _NULL_; FILE "&CSV_FILE" DSD LRECL=200; PUT 'ID,Category,Value,EntryDate'; PUT '1,A,123.45,12-JAN-2023'; PU...

Code SAS
Voir

No Data Step Required: Creating Computed Columns on the Fly with table.fetch

proc cas; session casauto; /* Charger la table IRIS de SASHELP dans la caslib 'casuser' */ table.loadtable / caslib='casuser', path='iris.sashdat', casout={name='IRIS_CAS', replace=true}; /* Afficher les informations de la table chargée */ table.table...

Code SAS
Voir

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

cas; /* Créer une table temporaire en mémoire CAS */ data casuser.ma_table_basique; input ID Name $ Value; datalines; 1 Alice 100 2 Bob 150 3 Charlie 120 ; run; /* Afficher les informations de la table */ proc cas; table.tableInfo result=r / name="ma_table_basique" caslib="casuser"; ...

Code SAS
Voir

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

cas; /* Créer une table dans le caslib "Samples" */ data samples.produits_ventes; input Annee Produit $ Quantite Prix; datalines; 2023 A 10 100 2023 B 20 50 2024 A 15 110 2024 C 5 200 ; run; /* Tenter d'obtenir des informations sur une table inexistante, en mode silencieux */ proc cas; ...

Code SAS
Voir

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

cas; /* Créer quelques tables avec des noms contenant des caractères spéciaux */ data casuser.donnees_2023_Q1; ID=1; Val=10; run; data casuser.donnees_2023_Q2; ID=2; Val=20; run; data casuser.donnees_2024_Q1; ID=3; Val=30; run; data casuser.rapport_final; ID=4; Val=40; run; /* Rechercher toutes ...

Code SAS
Voir

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

cas; /* Créer une table dont le nom contient un caractère spécial à échapper */ data casuser."resultat_final_%_test"; ID=10; Score=95.5; run; /* Tenter de trouver la table en utilisant un joker pour le nom et un caractère d'échappement */ proc cas; table.tableInfo result=r_escape / ...

Article
Voir

SAS Viya Tutorial: Everything About the table.tableInfo Action

In the SAS Viya environment, in-memory data management is crucial. Before manipulating a table, it is often necessary to check its existence, know its size, or retrieve its metadata (creation date, encoding, number of rows).This is where the tableInfo action from the table action set comes in.In ...