DATA Step, Macro, Functions and more

Multiply Two Tables

Reply
Regular Contributor
Posts: 229

Multiply Two Tables

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.
Respected Advisor
Posts: 3,900

Re: Multiply Two Tables

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
N/A
Posts: 0

Re: Multiply Two Tables

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

ikp
Ask a Question
Discussion stats
  • 2 replies
  • 196 views
  • 0 likes
  • 3 in conversation