PCrider,
I don't think you'll need array for this. I agree with Cynthia on proc format. Below is a quick code I wrote, hope it helps. Don't forget to edit/complete the conversion list in proc format.
Best,
George
-----------------------------
proc format;
value $grade 'A' = 4 'A-' = 3.7 'B+' = 3.4 'B' = 3 'C+' = 2.3 'C' =2 'D+' = 1.3;
run;
data GPA;
infile 'H:\Personal\GPA.txt' dlm=',';
input coursenum $:9. credit :2. grade $:2.;
point_grade = put (grade, $grade.);
gpa = point_grade * credit;
run;
proc print data = gpa;
run;
... View more