04-21-2017 08:04 PM
So I'm trying to figure out how to merge three data sets by a variable "Order_ID" into one with the name "delivery_dtl"
these are the three data sets:
Thanks for any help
04-21-2017 08:12 PM
great that worked.
Now how to do this:
Create a new variable delivery_speed in the data step; based on which data set the row / data is coming from.
Create a new variable report_month that will show the month and year part of the ‘delivery_date’ alone
I dont even understand the first task..
04-21-2017 10:07 PM
Question 1 - > is the observation in the merged data set from slow, quick or fast dataset?
Are you sure the question said merge? Not combine? At any rate, if they all have the same variables this doesn't quite make sense because all the variables will be overwritten. Either use the data set option IN or INDSNAME. The documentation has examples of each option.
Here's the link to the IN docs
Question 2 - > Look at Year/Month() functions, see the functions under Date&Time Category.