Search Results

725 résultats trouvés Page 63 / 73
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 / ...

Code SAS
Voir

SAS Viya to Excel: Automating Professional Reports with ODS EXCEL and CAS

/* 1. Création d'une table CAS d'exemple pour la démonstration */ /* Ceci rend l'exemple autonome, comme exigé. */ data casuser.qualifyapps; input Credit_Qualification $ Count; datalines; Bonne 100 Mauvaise 50 Inconnue 20 ; run; /* 2. Charger la table en mémoire CAS (si ce n...

Code SAS
Voir

Feature Engineering in CAS: How to Create Custom Categories from Continuous Data

data mycaslib.creditscores / sessref=mysession; infile datalines; input Age Credit_Score; datalines; 20 500 30 600 40 700 50 780 60 810 70 400 19 550 33 690 48 710 62 820 ; run; data mycaslib.creditqualify / sessref=mysession; set mycaslib.creditscores; length Age_Range $8; ...

Code SAS
Voir

Beyond PROC FREQ: Generating High-Performance Frequency Tables with SAS Viya Actions

data mycaslib.qualifyapps; set mycaslib.creditqualify; if Credit_Qualification='N/A' then Count=0; else Count=1; run;

Code SAS
Voir

Fixed vs. Variable: Why You Should Start Using VARCHAR in SAS Viya

/* Création d'une session CAS */ options casport=5570 cashost="localhost"; cas mysess; /* Utilisation d'une bibliothèque CAS */ libname mycas cas caslib=casuser; /* Création d'une table CAS avec divers types de données */ data mycas.datatypes_example; length char_var $10 varchar_var varchar...

Code SAS
Voir

Beyond the Basics: Using PARTITION and ALTERTABLE to Reshape CAS Data

cas casauto sessopts=(caslib='casuser'); libname mylib cas; proc casutil; load data=sashelp.cars casout='cars' replace; partition casdata='cars' casout='carsWhere' replace where='MSRP>90000 and Make="Porsche"'; altertable casdata="carsWhere" ...

Code SAS
Voir

DO WHILE vs. DO UNTIL: How to Avoid Logic Errors in Your SAS Loops

cas casauto sessopts=(caslib='casuser'); libname mylib cas; data mylib.loan; balance=10000; do payment_number=1 to 10; balance=balance-1000; output; end; run; proc print data=mylib.loan; run;

Code SAS
Voir

SAS Viya Essentials: How to Read, Write, and Persist In-Memory CAS Tables

filename names url "http://support.sas.com/documentation/onlinedoc/viya/exampledatasets/names.csv"; data mycas.names; infile names dsd truncover firstobs=2; input BRTH_YR :$10. GNDR :$10. ETHCTY :$10. NM :$10. CNT :$10. RNK :$10.; ru...