Hello!
I have a list of dates, lets say:
01Jan2017
01Feb2017
01Mar2017
And I have a list of teams, lets say:
Team_1
Team_2
Team_3
I am trying to create a data set that I can 'hang' further data from that would look like this:
Date Team
01Jan2017 Team_1
01Jan2017 Team_2
01Jan2017 Team_3
01Feb2017 Team_1
01Feb2017 Team_2
01Feb2017 Team_3
etc.......
Let's say you have this information in SAS data sets named DATE_DATA and TEAM_DATA:
proc sql;
create table want as select * from date_data, team_data;
quit;
Let's say you have this information in SAS data sets named DATE_DATA and TEAM_DATA:
proc sql;
create table want as select * from date_data, team_data;
quit;
proc sql;
create table want as
select *
from date , team ;
quit;
Thank YOU!
I was having a complete brain block!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.