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

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.......

1 ACCEPTED SOLUTION

Accepted Solutions
Astounding
PROC Star

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;

View solution in original post

3 REPLIES 3
Astounding
PROC Star

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;

Ksharp
Super User

proc sql;

create table want as

select *

 from date , team ;

quit;

mauley
Fluorite | Level 6

Thank YOU!

 

I was having a complete brain block!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 529 views
  • 1 like
  • 3 in conversation