BookmarkSubscribeRSS Feed
tejeshwar
Calcite | Level 5
Hi,

I have 27 different datasets for different months. My objective is to create a time series dataset such that I have data appnded on coloumns and not row wise. I have renamed same variables in these datasets with a time stamp such as

abc_0108 (Jan Dataset)
abc_0208 (Feb Datastet)
abc_0308 (March dataset)

What I am planning to use is

data a;
set b;
merge a b c;
by s;
run;

However there is a field called client which is present in all 27 dataset with the same name. This field takes 12 different values and my obejective is to perform merge on single values on client.

Can anyone suggest a way so that i can filter client while merge and in best possible fashion since I am dealing with data which is in millions.
Thanks
3 REPLIES 3
LinusH
Tourmaline | Level 20
Could you be more specific about your client column? Pls give some examples of your 12 different values (which I assume exist for each client?).

Without knowing these, I could only guess that you need to clean your client columns in prior to the merge.
/Linus
Data never sleeps
tejeshwar
Calcite | Level 5
The client field will have 12 different values such as

Bigshoppe
Shopperee
Westcouper

Now if I want the merge to happen only for Bigshoppe, is there a way I can do that while performing the merge?

Thanks
LinusH
Tourmaline | Level 20
Just add a WHERE statement.

/Linus
Data never sleeps

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 3 replies
  • 528 views
  • 0 likes
  • 2 in conversation