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

Hi All,

 

I am using one of the variable as group variable in ods tagset excelxp in proc report .The issue here is that value of that group variable appear in last row for that particular variable.I want the same to appear in top row.Is there any way to achieve the same?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ
Hi: Without code or data, it is hard to envision what you are describing. Did you use the SPANROWS option as a PROC REPORT option, for example. Can you post an example of your code either using SASHELP data that everyone has or by posting a sample of your data? It will make it easier for people to understand what you mean when you say that "value of that group variable appears in last row".

cynthia

View solution in original post

2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi: Without code or data, it is hard to envision what you are describing. Did you use the SPANROWS option as a PROC REPORT option, for example. Can you post an example of your code either using SASHELP data that everyone has or by posting a sample of your data? It will make it easier for people to understand what you mean when you say that "value of that group variable appears in last row".

cynthia
draroda
Fluorite | Level 6

Hi Cynthia,

 

Apologies for not posting the data.However, your reply gives me hint to look at spanrows option.I removed it and now it appear as expected.

 

Regards

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 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2 replies
  • 772 views
  • 0 likes
  • 2 in conversation