Hi:
This looks like a report writing task, and not something you'd store permanently in the data set. Just one reason why would wouldn't insert a variable like that into your dataset is that it looks like you want the variable "row" to "span" all 3 columns, like something you'd do in Excel. But, SAS expects every data set "row" to have the same number of columns -- so you could only insert a "spanning" row like this into a report -- not into the data set itself.
If your data were stored in a file called PERM.MYDATA, then a PROC REPORT program like this would work on a temporary data set that created variable called 'Grp' to print the identifying row above each group:
[pre]
data makegrp;
set perm.mydata;
Grp = catx(' ',upcase(substr(col3,1,1)),'Group');
run;
ods listing;
ods html file='c:\temp\makegrp.html' style=sasweb;
proc report data=makegrp nowd;
column Grp col1 col2 col3;
define Grp / order noprint;
define col1 / display;
define col2 / display;
define col3 / display;
compute before Grp;
line Grp $10.;
endcomp;
run;
ods html close;
[/pre]
Once your SAS session is over, the WORK.MAKEGRP file will go away and your original dataset is unchanged.
cynthia