BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
snip
Obsidian | Level 7
 Good morning I am on a report proc, I have a column that I need to rename to varX / varY define my_var / display 'varX / varY'; in my output I don't have the slash / how to correct this please?
 
1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Please repost your question.

The only stuff that should be pasted into a text box is code or log entries generally. Discussion and questions outside of the boxes.

 

Show us the entire code, preferably copied from the LOG with all the messages. Best to include some example data in the form of a data step so we can actually test your code.

 

The default Split character for proc report is / and if your "renamed" is showing up on two lines then that is the reason.

Add this to the Proc Report statement to change that.

split='*' 

View solution in original post

2 REPLIES 2
ballardw
Super User

Please repost your question.

The only stuff that should be pasted into a text box is code or log entries generally. Discussion and questions outside of the boxes.

 

Show us the entire code, preferably copied from the LOG with all the messages. Best to include some example data in the form of a data step so we can actually test your code.

 

The default Split character for proc report is / and if your "renamed" is showing up on two lines then that is the reason.

Add this to the Proc Report statement to change that.

split='*' 
snip
Obsidian | Level 7

thank's

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 872 views
  • 1 like
  • 2 in conversation