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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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