BookmarkSubscribeRSS Feed
wutao9999
Obsidian | Level 7

Let's assume we have two data sets:   products_table products {apple, orange, banana}    and subproducts_table  subproducts {apple, banana}.

In the SAS OPTMODEL procedure, we have define the set,

set<string> products_set;

read data products_table into

        products_set = [products];

how do we define a subset of products_set which contains "subproducts {apple, banana}"?

Thank you for the help.

1 REPLY 1
RobPratt
SAS Super FREQ

You would just need a second SET and READ DATA for the other data set:

set<string> subproducts_set;

read data subproducts_table into subproducts_set=[subproducts];

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

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