BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Andrea_Peng
Obsidian | Level 7

Hi,

 

I want to get a table like the this:

 

Report.PNG

 

How can I put the top column ("Recruitment" and "Post-Recruitment") in the report? I used proc report to make it but did not succeed.

 

Thanks,

Andrea

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

@Andrea_Peng wrote:

How can I put the top column ("Recruitment" and "Post-Recruitment") in the report? I used proc report to make it but did not succeed.

 


Do you mean the top ROW?

 

Something like this in PROC REPORT

 

columns group ("Recruitment" declined currently consented) 
    ("Post-Recruitment" Completed partially Pending);

where variables are assumed to be named DECLINED CURRENTLY CONSENTED etc.

--
Paige Miller

View solution in original post

3 REPLIES 3
JeanDo
Obsidian | Level 7

Hi,

Could you provide a sample of you input table please?

 

Regards,

JD

ballardw
Super User

Instructions here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.

 

It would also be a good idea to show the code you have attempted so far.

PaigeMiller
Diamond | Level 26

@Andrea_Peng wrote:

How can I put the top column ("Recruitment" and "Post-Recruitment") in the report? I used proc report to make it but did not succeed.

 


Do you mean the top ROW?

 

Something like this in PROC REPORT

 

columns group ("Recruitment" declined currently consented) 
    ("Post-Recruitment" Completed partially Pending);

where variables are assumed to be named DECLINED CURRENTLY CONSENTED etc.

--
Paige Miller

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 712 views
  • 1 like
  • 4 in conversation