Desktop productivity for business analysts and programmers

Rename columns before append

Reply
Occasional Contributor
Posts: 5

Rename columns before append

I joined a table on itself, and in the output each column name appears twice, one column is called (example; name) and the other one (example; name1, done automatic bij SAS Enterprise Guide).

In the next step i split the table so i can  place the results below eachother with a append. Is there a way to rename all collumns that end with the "1" so i can append the two tables?

Frequent Contributor
Posts: 118

Re: Rename columns before append

Hi,

We can do this thing with the help of Dictionary tables along with macro.

Trying to write specific code for your query...

will be back soon.

Regards

Uma Shanker Saini

Frequent Contributor
Posts: 118

Re: Rename columns before append

Super User
Posts: 3,237

Re: Rename columns before append

If you are wanting to append a table onto itself why don't you use the EG Append Table task? If you do that you can avoid the joining rename issue.

Super User
Posts: 19,167

Re: Rename columns before append

Perhaps you should explain what you'd like to do overall and people can suggest different methods?

Ask a Question
Discussion stats
  • 4 replies
  • 277 views
  • 0 likes
  • 4 in conversation