BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Leetk
Calcite | Level 5

When trying to create a Histogram, the Role plus sign doesn't display the pick list of roles.  Nothing happens at all, but it is a required field for Histogram so I am stumped as to why this is happening.  Tech support says it's a usage issue and seek assistance in the communities.  Can anyone help?

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  Instead of using a task to generate the histogram code behind the scenes, you could just write the code yourself. The documentation, here https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0j7m77qd6d03ln1l4bk301h2imo.ht... has an example of generating a histogram using SASHELP.HEART, which you should be able to just copy and run. 

  When you use the ROLE chooser in the task, it provides the variable that will be used for the histogram. When you choose the Additional Roles in the task, it provides a variable for a BY statement.

  Once you see how the documentation example using SASHELP.HEART works, you should be able to use that code as a model to generate a histogram using your own data.

Cynthia

View solution in original post

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  Instead of using a task to generate the histogram code behind the scenes, you could just write the code yourself. The documentation, here https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0j7m77qd6d03ln1l4bk301h2imo.ht... has an example of generating a histogram using SASHELP.HEART, which you should be able to just copy and run. 

  When you use the ROLE chooser in the task, it provides the variable that will be used for the histogram. When you choose the Additional Roles in the task, it provides a variable for a BY statement.

  Once you see how the documentation example using SASHELP.HEART works, you should be able to use that code as a model to generate a histogram using your own data.

Cynthia

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 397 views
  • 0 likes
  • 2 in conversation