Proc CLP - Error with scheddata

#1
Hi guys,

I've been playing around with Proc CLP to help deal with constraint problems (efficient ways to allocate resources etc). However I am running into a bit of trouble with errors in my code and was wondering if anyone could help.

There are two examples of code on the SAS website. Which will be very similar to the code I will end up using. They are as follows:

http://support.sas.com/documentatio...TML/default/viewer.htm#orcpug_clp_sect031.htm

and

http://support.sas.com/documentatio...TML/default/viewer.htm#orcpug_clp_sect030.htm


But when I run the suggested codes, I get the following error when running the Proc CLP component:


* This code is for the first example mentioned above;

97 proc clp dom=[0,12] scheddata=sched_ex2 restarts=500 dpr=25;
---------
22
76
ERROR 22-322: Syntax error, expecting one of the following: ;, ACTDATA, ACTIVITY, ALLSOLNS,
CONDATA, DECRMAXTIME, DM, DOM, DOMAIN, DPR, EVALVARSEL, FINDALL, FINDALLSOLNS,
MAXSOLNS, MAXTIME, NOPREPROCESS, OUT, PREPROCESS, RESDATA, RESIN, RESTARTS,
SCHEDOUT, SCHEDRES, SCHEDTIME, SCHEDULE, SHOWPROGRESS, TIMETYPE, USECONDATAVARS,
VARASSIGN, VARSELECT.
ERROR 76-322: Syntax error, statement will be ignored.
98 schedule start=0 dur=12 actselect=MAXD actassign=MAXTW EDGEFINDER;
99 activity &activities;
100 resource (M0-M9) (OP0-OP6);
101 requires &requirements;
NOTE: Line generated by the macro variable "REQUIREMENTS".
1 (J1)=(M0 OP0,M0 OP1,M0 OP2,M1 OP0,M1 OP1,M1 OP2) (J2)=(M0 OP0,M0 OP1,M0 OP2,M1 OP0,M1
---
22
76
1 ! OP1,M1 OP2,M2 OP0,M2 OP1,M2 OP2) (J3)=(M1 OP0,M1 OP1,M1 OP2,M2 OP0,M2 OP1,M2 OP2,M3 OP0,M3
1 ! OP1,M3 OP2) (J4 J5 J6)=(M3 OP2,M3 OP3,M3 OP4,M3 OP5,M4 OP2,M4 OP3,M4 OP4,M4
ERROR 22-322: Syntax error, expecting one of the following: ',', OR.
ERROR 76-322: Syntax error, statement will be ignored.
102 run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE CLP used (Total process time):
real time 0.01 seconds
cpu time 0.03 seconds



The same error happens for the other example above as well. What is extra strange is that the code for example 1 above worked fine for the past week, but only started not working today. While the example 2 always had this error.


Can anyone help?

Thanks a lot,

Steve
 
#2

hlsmith

Not a robit
#3
Interesting, seems like a Gannt chart. I played around with it to no avail. However, I see the code was written for 9.2 and the documentation stated it is experimental. Perhaps if you are not using 9.2 it is different (probably not, but a possibility). Good luck, I would be interested in hearing if you get it working.