Hard to tell what you are trying to do. I sounds like you want to produce a REPORT that looks like this:

Which is easy if you organize your data in the right way with a variables for NAME, YEAR, ROW (or repetition) and VALUE.
proc report data=have;
column name value,row,year;
define name / group;
define row / across ' ';
define year / across ' ';
define value / sum ' ';
run;
You could build such a dataset from your original listing easily.
data have;
input name $ @;
row+1;
do year=2020, 2021, 2022;
input value @;
output;
end;
cards;
A 3 74 72
A 45 21 5
A 4 9 10
;
Example data
Obs name row year value
1 A 1 2020 3
2 A 1 2021 74
3 A 1 2022 72
4 A 2 2020 45
5 A 2 2021 21
6 A 2 2022 5
7 A 3 2020 4
8 A 3 2021 9
9 A 3 2022 10