Hello ALL,
i have data like
SUBJECTID | SITEID | PT | SOC |
SS0010001 | SS001 | COVID-19 pneumonia | Infections and infestations |
SS0010002 | SS001 | Acute respiratory distress syndrome | Respiratory, thoracic and mediastinal disorders |
this is my data i want to print it in word by proc report like below
Site/ SubjectID | System Organ Class/ Preferred Term |
MX001/ MX0010001 | Infections and infestations/ COVID-19 pneumonia |
MX001/ MX0010002 | Respiratory, thoracic and mediastinal disorders/ Acute respiratory distress syndrome |
I used flow option but it is not working for me.
Thank you so much for your reply i tried my best to explain my problem.
Yes this is i want to print new variable like this, but there is only one small addition that i want "/" symbol after each variable name
i.e.
Mary/
15/
F/
66.5/
112
Can i do this using proc report or in your code of "Catx".
Please
Hi:
FLOW is only supported in the LISTING destination, or the OUTPUT window. The ODS destinations basically ignore the FLOW option. Without knowing what your full code is, it is only just a guess that you might do differently. However, review this previous post https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-PD... there is some code in that posting that illustrates the use of WIDTH= as a style override that does for ODS destinations something similar to what FLOW does for the LISTING destination. Perhaps that will give you some ideas of how to proceed.
Otherwise, you'll have to post your code in readable format, a program that reads your code and tell us your ODS destination of your final results. Other options you have like HEADLINE, HEADSKIP, SPACING and FLOW are all ignored by ODS RTF, ODS PDF, ODS HTML, ODS POWERPOINT and ODS EXCEL.
Cynthia
Thank you cynthia,
i just want to learn that
if there is two variable system organ class and preferred term and in ods rtf output i want to present them as single variable separating by "/" and i want preferred term value in second line.
Hi:
Off hand it sounds like you might have to code for that. None of what you describe is clear to me from your tiny data example, What variable, for example is system organ class in your list of variables? What variable is preferred term? Here's an example of what I think you're describing using ODS RTF and a STYLE override for width since FLOW, HEADLINE, HEADSKIP, etc are all ignored by ODS RTF:
Note that the ESCAPECHAR function {newline} needs to have the same ESCAPECHAR declared as the character (in this case, ^) used in the program.
Cynthia
Thank you so much for your reply i tried my best to explain my problem.
Yes this is i want to print new variable like this, but there is only one small addition that i want "/" symbol after each variable name
i.e.
Mary/
15/
F/
66.5/
112
Can i do this using proc report or in your code of "Catx".
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.