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

Tom

Please accept my apologies if the phrasing in my most recent posting appears addressed to you.

I really meant to be addressing the original poster.

kind regards

and compliments of the season

peterC

Howles
Quartz | Level 8

See

Convert Numeric Variables to Character - sasCommunity

However, the technique might be defeated by the sheer number of columns.

MAXISAS
Calcite | Level 5

Thanks everyone for their generous answer, I have one more question which is how to append two datasets (lets say data1 and data1) which has the same number of rows append horizontally (I dont want to merge or sort just glue two files horizontally)? thanks for your help in advance

btw, Im new to this website and I dont know if I should make new discussion if I have question or just continue to ask questions on the same discussion?

Bests

Reeza
Super User

You should make a new discussion and mark the correct/helpful answers in this post. If none are the exact answer, check your first post to mark the question: Assumed Answered.

art297
Opal | Level 21

You really should ask new questions by starting a new discussion, as well as give people credit for providing responses (i.e., helpful and correct where applicable).

However, assuming your two files are data1 and data2, you can "glue" them together by using a datastep. e.g.:

data want;

set data1;

set data2;

run;

Of course, you may have to drop or rename some variables in the event variables of the same name exist in the two datasets.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 20 replies
  • 15754 views
  • 13 likes
  • 10 in conversation