Learning SAS? Welcome to the exclusive online community for all SAS learners.

SAS University Edition Bug with .rtf output?

Reply
Occasional Contributor
Posts: 13

SAS University Edition Bug with .rtf output?

Hello

SAS University Edition seems to have a bug when producing .rtf output.

The bug is in the .rtf file generated not in web display, Group's are not identified correctly by labels like

Group=Group1 Group=Group2 etc.

Instead each label is displayed the same in a wrong manner ie.

Group=Group1 Group=Group1 etc.

 

I have the following code that produces the bug

proc corr data=mydata;
by group;
var var1 var2 ;
run;

 

Bug reproduces too when using univariate procedure. I did not try other procedures.

 

Super User
Posts: 19,815

Re: SAS University Edition Bug with .rtf output?

Post an example that can be replicated, ie either provide sample data or point to a sashelp dataset.
SAS Employee
Posts: 147

Re: SAS University Edition Bug with .rtf output?

Thanks, Reeza!  We'd love to see an example so we can track it down.  We tried the following code and didn't see the behavior being reported.

proc sort data=SASHELP.CARS out=WORK.sortDS equals;
                by Type;
run;

proc corr data=work.sortDS;
by type;
var enginesize weight ;
run;
Occasional Contributor
Posts: 13

Re: SAS University Edition Bug with .rtf output?

[ Edited ]

I tried your code Amy, and it reproduces the same bug for me.
I am on linux, virtualbox.

Super User
Posts: 19,815

Re: SAS University Edition Bug with .rtf output?

Post your output file as well please Smiley Happy

Occasional Contributor
Posts: 13

Re: SAS University Edition Bug with .rtf output?

I am sorry to say that this is a problem with Libreoffice not with SAS. I opened .rtf file on different office suites and able to display them correctly. Suspectedly Libreoffice display them wrong.
I could not find how to attach the files to this post.
Occasional Contributor
Posts: 13

Re: SAS University Edition Bug with .rtf output?

Here are the .rtf files

 

Attachment
Occasional Contributor
Posts: 13

Re: SAS University Edition Bug with .rtf output?

Here it is

data example;
input group var1 var2;
datalines;
1 2 3
1 3 4
1 4 5
2 5 6
2 6 7
2 7 8
3 8 9
3 9 10
3 10 11
;
run;
proc corr data=example;
by group;
var var1 var2 ;
run;
proc univariate data=example;
by group;
var var1 var2;
run;
Super User
Posts: 11,343

Re: SAS University Edition Bug with .rtf output?

[ Edited ]

How is this output sent to RTF?

 

Also, you get 2 sets of output in the Univariate code for group 1 because you have TWO variables, Var1 and Var2.

 

Note that group= has a line above that says Variable: var1 or Variable: var2. You would get more enteries for each group if you had more variables on the VAR statement.

Ask a Question
Discussion stats
  • 8 replies
  • 526 views
  • 1 like
  • 4 in conversation