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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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