@zouinenoah Below your Proc Format code with the required fixes applied (no semicolon after the value statement and one repeated group removed).
I'm not sure though what the purpose of format $AttendingSpecialty could be given all values map into the same label.
proc format;
value $CompanyCode (multilabel notsorted)
"900"="Aurora Medical Center Grafton"
"902"="Aurora St. Luke's Medical Center"
"903"="Aurora St. Luke's South Shore" "904"="Aurora Sinai Medical Center"
"905"="Aurora West Allis Memorial"
"906"="Aurora Medical Center Washington County"
"907"="Aurora Memorial Hospital of Burlington"
"908"="Aurora Medical Center Kenosha" "909"="Aurora Lakeland Medical Center"
"910"="Aurora Sheboygan Memorial Medical Center"
"911"="Aurora BayCare Medical Center" "912"="Aurora Medical Center Oshkosh"
"913"="Aurora Medical Center Summit"
"914"="Aurora Medical Center Manitowoc County" "916"="Aurora Bay Area"
;
value $AttendingSpecialty
"Hospitalist"='Hospitalist' " ",
"Addiction Medicine",
"Advanced Heart Failure and Transplant Cardiology",
"Anesthesiology",
"Bariatric Surgery",
"Cardiac Electrophysiology",
"Cardiology",
"Cardiothoracic Anesthesiology",
"Cardiothoracic Surgery",
"Cardiovascular & Thoracic Surgery",
"Cardiovascular Disease",
"Child Psychiatry",
"Child/Adolescent Psychiatry",
"Colorectal Surgery",
"Critical Care",
"Critical Care Medicine",
"Electrophysiology",
"Emergency Medicine",
"Family Medicine",
"Family Practice",
"Gastroenterology",
"General & Vascular Surgery",
"General Medicine",
"General Surgery",
"General Surgey",
"Geriatric Medicine",
"Gynecologic Oncology",
"Hematology & Oncology",
"Hematology/Oncology",
"Internal Medicine",
"Interventional Cardiology",
"Maternal/Fetal Medicine",
"Neonatal & Perinatal Medicine",
"Neonatalogy",
"Neonatology",
"Neurological Surgery",
"Neurology",
"Neuroradiology",
"Neurosurgery",
"OB/GYN",
"Obstetrics",
"Obstetrics & Gynecology",
"Obstetrics/Gynecology",
"Oncology",
"Orthopaedic Surgery",
"Orthopedic Surgery",
"Orthopedics",
"Otolaryngology",
"Otorhinolaryngology",
"Pediatric",
"Pediatric Critical Care",
"Pediatric Emergency Medicine",
"Pediatric Gastroenterology",
"Pediatric General Surgery",
"Pediatric Hematology/Oncology",
"Pediatric Medicine",
"Pediatric Orthopedic Surgery",
"Pediatric Palliative Medicine",
"Pediatric Pulmonology",
"Pediatric Urology",
"Pediatrics",
"Physical Medicine & Rehab",
"Physical Medicine & Rehabilitation",
"Plastic Surgery",
"Plastic and Reconstructive Surgery",
"Plastic/Reconstructive Surgery",
"Podiatry",
"Psychiatry",
"Pulmonary Medicine",
"Radiation Oncology",
"Sleep Medicine",
"Surgery",
"Surgical Critical Care",
"Thoracic & CV Surgery",
"Thoracic Surgery",
"Thoracic and Cardiac Surgery",
"Trauma Surgery",
"Urogynecology",
"Urology",
"Vascular",
"Vascular & Interventional Radiology",
"Vascular Surgery",
"eICU physician",
"eICU-Lead"
='All Specialties'
;
run;
... View more