BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Gil_
Quartz | Level 8
I have 2 data sets I need to combine here is 1st one
Number date id total
123. 12/01/17. 1. 30
345. 05/07/17. 10. 60
453. 06/17/17. 20. 90
323. 06/23/17. 50. 50
2nd table .
Number. 2 Date.2 id total 2
123. 03/07/18. 1. 50
345. 03/07/18. 10 100
453 03/07/18. 20 60
323. 07/07/18. 50 80
I want to see
Number. Date. Id. Order. Order2
123. 12/01/17. 1. 30. 50
345. 05/07/17. 5 60. 100
453. 06/17/17. 10 90. 60
323. 06/23/17. 50. 50. 80
When I do a join the number to number the id number is out of sequence where 1 is match up to 20.


1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

@Gil_ wrote:

When I do a join the number to number the id number is out of sequence where 1 is match up to 20.



Show the code you used. And "where 1 is match up to 20" doesn't make much sense in terms of what you have shown.

 

Provide example data in the form of data steps if you want tested code. Instructions here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.

View solution in original post

1 REPLY 1
ballardw
Super User

@Gil_ wrote:

When I do a join the number to number the id number is out of sequence where 1 is match up to 20.



Show the code you used. And "where 1 is match up to 20" doesn't make much sense in terms of what you have shown.

 

Provide example data in the form of data steps if you want tested code. Instructions here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 618 views
  • 0 likes
  • 2 in conversation