The only solution I can find pertains to RTF. In the following code, in the style(lines) statement, all of the attributes except justify are assigned properly, that is the text is blue Consolas etc, but it is left justified. How can I move this over to the right in the HTML5 destination?
proc report data=Rpt nowd style(lines)=[fontsize=4 fontfamily=Consolas foreground=blue just=right]; columns testlbl GOrd AnalyteName define GOrd / noprint order order=data; define testlbl / noprint order order=data; define AnalyteName / display style(column)=[cellwidth=3.0in fontsize=5] "Assessment"; compute after GOrd; line testlbl $100.; endcomp; run;
Hi:
I'm not having any issues when I make fake data in having the LINE output showing as right justified, as shown below:
I kept the text for the line relatively brief so that the justification would stand out in the fake results.
Cynthia
As posted your code won't run: there is not semicolon ending the COLUMNS statement.
Since you specifically state HTML5 destination you should provide an example of the ODS HTML5 statement you are using in case any of the options are involved with the issue.
Can you provide example data that behaves as stated (at least one the semicolon issue is fixed)? Example data should be in the form of working data step code pasted into a text box opened on the forum using the </> above the message window to prevent the forum software from reformatting pasted text which can cause some data step code to fail.
Hi:
I'm not having any issues when I make fake data in having the LINE output showing as right justified, as shown below:
I kept the text for the line relatively brief so that the justification would stand out in the fake results.
Cynthia
Thank you. I had cut off the visit variables to simplify the issue but they were the problem (?). I had just noprint as an option and changed that to display noprint and the code worked as expected.
I figured out the common thread at least... it does not work as expected when run interactively, but it does in batch mode. Once I figured that out I noticed some other subtle changes in the output where minor things in the style were different.
In fact, when anyone except me runs it, it works fine. And seeing the outputs from the same program side by side, one run by me and one by someone else, I can see more differences in the style, they are just more subtle so I didn't notice them before. Suggests a problem with my template store perhaps.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.