Dear Cynthia, thank you for your quick reply and helpful comments on my code! I corrected the inconsistencies: %let filename=&path.\Listings\Proc-Report_spanrows_rtf-tagsets_issue_v2_&sysdate9..rtf;
ods listing close;
options nofontembedding orientation=landscape nodate nonumber center;
ods tagsets.rtf style=styles.journal file="&filename." uniform;
ods noproctitle;
ods escapechar = "^";
ods tagsets.rtf startpage=yes;
proc report data=tst center split='*' nowd spanrows
style(report) = [cellspacing=0 cellpadding=6]
/*out=tst_out style(lines) = {font_size=10pt}*/;
columns (or hold_or mk typ model weight);
define or / order left style(column)=[cellwidth=1.5cm] "Origin";
define hold_or / computed noprint;
define mk / order left style(column)=[cellwidth=1.5cm] "Make";
define typ / order left style(column)=[cellwidth=1.5cm] "Type";
define model / order left style(column)=[cellwidth=1.5cm] "Model";
define weight / left style(column)=[cellwidth=2.0cm] "Weight (in kg)" f=comma7.0;
compute before or;
hold=or; * Assign new variable "hold", that keeps the value of "or";
endcomp;
compute hold_or;
hold_or=hold; * Pass value of "or" (earlier saved as "hold") to computed variable "hold_or";
if or=. then or=hold;
endcomp;
* Empty line after "make";
compute after mk / style={font_size=4pt};
line@1 "";
endcomp;
* Empty line after "origin";
compute after or / style={font_size=8pt};
line@1 '';
endcomp;
run;
ods tagsets.rtf close;
ods listing; Regarding the custom journal-style: I made some changes on the page definitions (e.g. size of page, fontsize). For the sake of this example I can go with the default journal style.
... View more