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

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
  • 2 replies
  • 463 views
  • 1 like
  • 2 in conversation