proc format; value $abc 'y' = 'Active' 'n' = 'Placebo'; value $xyz 'f' = 'Female' 'm' = 'Male'; run;
proc format; /*3*/ value FuelEff low-20="Low" 20
/* Configuration CAS (si non déjà configurée) */ cas; caslib _all_ assign; /* Préparation des données: Création d'un jeu de données de score synthétiques */ data work.score_data; length good_bad $4; input _PartInd_ good_bad $ p_good p_bad; datalines; 0 good 0.6675 0.3325 0 good 0.5189 0...
libname mycas cas; /* Création d'une table CAS avec des données */ data mycas.employes_cas; input ID Employe $ Service $ Salaire Anniversaire :yymmdd10.; format Anniversaire yymmdd10.; datalines; 101 Dupont RH 50000 1980-05-15 102 Martin Ventes 65000 1975-11-22 103 Dubo...
options linesize=80 pagesize=60; data test; input name $ Score; datalines; Jon 1 Anthony 3 Miguel 3 Joseph 4 Ian 5 Jan 6 ; proc format; value Range 1-2='Low' 3-4='Medium' 5-6='High'; run; data newtest; set test; by groupformat S...
/* Création d'une table de démonstration en mémoire CAS */ data casuser.etudiants; input Nom $ Matiere $ Note; datalines; Alice Math 90 Bob Info 85 Alice Info 92 Charlie Math 78 Bob Math 88 ; run; /* Création d'un format personnalisé pour les notes */ proc format; value note_fmt ...
options linesize=80 pagesize=60; data test; input name $ Score; datalines; Jon 1 Anthony 3 Miguel 3 Joseph 4 Ian 5 Jan 6 ; proc format; value Range 1-2='Low' 3-4='Medium' 5-6='High'; run; data newtest; set test; by groupform...
/* Définition du format de couleur */ PROC FORMAT; VALUE watchit 0 - 20000 = 'Green' 20001 - 30000 = 'Orange' 30001 - 50000 = 'Blue' 50001 - 60000 = 'Purple' 60001 - high = 'Red'; run; /* Application du format comme couleur de fond (foregroun...