01-10-2018 11:58 AM
I am using proc report to create report (table1.rtf). one of variable (armb_c) is expected to display as “ArmB/C”( expected output). However in my output, the “C” always goes down one line (My output). I know the “/” serve as a break in proc report. Is any way to keep the “ArmB/C” in same line? Please see detail in attached file.
01-10-2018 02:17 PM
Yes you are correct the "/" does serve as a break. I tried it without the / and just did "or" and was able to get the output that you are attempting to create.
Here is the code that I used:
proc report data=have NOWD; title1 "Table 1 Count of male subjects by arm"; column Male Arma armb_c; define Male /display " Male" style=[cellwidth=4 just=c]; define ArmA /display " Arm A /(N)" style=[just=c]; define armb_c /display "Arm B or C/(N)" style=[just=c]; compute after /style=[just=l]; line "Count of male subjects by arm"; endcomp; RUN;
Here is the location of our documentation that might be more useful: http://go.documentation.sas.com/?docsetId=proc&docsetTarget=p0bqogcics9o4xn17yvt2qjbgdpi.htm&docsetV...
Need further help from the community? Please ask a new question.