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

What is the desired format of DOB? You will have to use the conversion functions, either input or put to convert it to the same type. Once you do that you should be able to concatenate your datasets.

tarheel13
Rhodochrosite | Level 12

Please try this. First convert DOB to mmddyy10 in view2 then stack it together with view1 in a data step.

data view2(drop=tempvar);

set SASCDC_2.Arias_VIEW_2(rename=(dob=tempvar));

dob = input(tempvar, mmddyy10.);

run;

 

data want;

set SASCDC_2.Arias_VIEW_1 view2;

run;

 

wlierman
Lapis Lazuli | Level 10

Hello,

 

Your coding worked in that the two datasets stacked vertically and the DOB - numeric and text - issue has been solved.

 

Thank you very much.

 

I want to recommend your method as a Solution but don't see where I can - because I had already designated a solution but your answer is complete.  I will indicate that this is a Solution, if you could direct me to how to do so.

 

Thank you again for this help.

 

wlierman

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 17 replies
  • 3335 views
  • 2 likes
  • 4 in conversation