I am horrible with arrays, so I know how to basically use them to create or manipulate data, but how would one use them to store all the data from a table and then use the data in a proc step?
So my data:
Venue | 4/1/12 | 4/2/12 | 4/3/12 | 4/4/12 |
---|---|---|---|---|
A | 3 | 7 | 1 | 5 |
B | 3 | . | 4 | 9 |
C | 15 | 3 | 2 | 1 |
And so forth.
I then want to use it in a proc clp to the point where A would be one set of values (one array), B would be another, C would be another and so forth.
I really have no idea how to simply put the data into such arrays. Seems like all examples are arrays that create data.
Are you going off the SAS/OR(R) 9.3 User's Guide: Constraint Programming
?
The Proc CLP documentation tells me that you have to specify the arrays, if used, within the proc. So you don't have to do anything in a datastep. Go directly to Proc CLP.
Are you going off the SAS/OR(R) 9.3 User's Guide: Constraint Programming
?
The 9.2.3 version.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.