BookmarkSubscribeRSS Feed
R_Win
Calcite | Level 5
I HAVE TWO DATA SETS I WNAT TO MULTIPLY ONE VARIABLE WITH ANOHTER DATASET VARIABLES HERE ARE THE TABLES

data x;
input id sal;
cards;
1 2
3 4
run;



data b;
input id sal;
cards;
6 8
9 9
run;


nOW I WANT A ANEW DATASET I WANT a.id*b.id and a.sal*b.sal i want those two variables and the output should be also the same names.
2 REPLIES 2
Patrick
Opal | Level 21
Michel
If you want other people to take their time to solve your problems then you should take your time to formulate the question.
I like that you provide example code. It would make it easier - but what's the problem to be solved here?
Regards
Patrick
deleted_user
Not applicable
Michel,

I will have to agree with Patrick here. In addition to your question you can show the answer desired based on your sample data. It could help some people to come up with the question to answer :).

ikp

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 2 replies
  • 980 views
  • 0 likes
  • 3 in conversation