Hi everyone, I want to thank everyone for their time. I was making something much harder than it needed to be. All I needed to do was to change the variable RBRVSYear from text to numeric. After all of my attempts, literally 16 hours, and the feedback from this group I got it done in 10 minutes: Here is the code that worked. proc sql; create table folder.pst_reference_cptrbrvs_final as (select input(RBRVSYear, 4.) as RBRVSYear ,SubspecialtyId ,FSSSubspecialtyId ,ProcedureCodeCategory ,ProcedureCode ,ModifierCode ,BlendedSiteOfService ,CignaWorkFactor ,CignaFacilityPracticeFactor ,CignaNonFacilityPracticeFactor ,CignaMalPracticeFactor ,MedicareWorkFactor ,MedicareFacilityPracticeFactor ,MedicareNonFacilityPracticeFac ,MedicareMalpracticeFactor ,LabAmount from folder.pst_reference_cptrbrvs ); quit;
... View more