The SAS Output Delivery System and reporting techniques

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.
Super Contributor
Super Contributor
Posts: 3,174

Re: Multiply Two Tables

You have not indicated how you want the table rows to be combined? Best recommendation is to provide a sample of data as you would expect, with the combining and calculations, as explained in your post.

Scott Barry
SBBWorks, Inc.
Super Contributor
Super Contributor
Posts: 3,174

Re: Multiply Two Tables

Please do not post the same question in multiple forums.
Ask a Question
Discussion stats
  • 2 replies
  • 133 views
  • 0 likes
  • 2 in conversation