BookmarkSubscribeRSS Feed
JChan10
Calcite | Level 5
Hi.

How can I multiply two tables easily?
(e.g. 3x4 table multiply with 4x1 table to become 3x1 tables)

Table 1
A B C D
0 1 0 1
1 0 1 0
1 1 1 1

Table 2
a 12
b 3
c 5
d 7

Output = A*a +B*b +C*c+D*d
A B C D Output
0 1 0 1 10
1 0 1 0 17
1 1 1 1 27
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
That's reasonably easy to do in IML, but it is not what EGuide was designed for. Check out the SAS/IML Studio in 9.2 .

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 926 views
  • 0 likes
  • 2 in conversation