Date: Mon, 28 Mar 2005 15:31:59 GMT
Reply-To: julierog@ix.netcom.com
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Roger Lustig <trovato@VERIZON.NET>
Subject: Re: help on syntax error
In-Reply-To: <1112014905.911522.122810@o13g2000cwo.googlegroups.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
What's line 324 about? (Relative to the end of line 323, that is...)
Roger
gscsrc@hotmail.com wrote:
> I had good working code but need to add to it
> in the set statement of the keep part I added ....cnfndtyp
>
> I also added
>
> cnfndtyp ne 'F/L' and
> 321 + cnfndtyp ne 'FSL' and
> 322 + cnfndtyp ne 'LPA' and
> 323 + cnfndtyp ne 'S/L' and /* exclude
> Local contracts */
>
> can somebody help me fix this code?
> thanks in advance
>
>
>
> 302 +data proppass;
> 303 + format cndtlet yymmdd.
> 304 + cndtrej yymmdd.
> 305 + cndtacnl yymmdd.;
> 306 +
> 307 + set dproposl (keep =contid ccontid cnprptyp cnhwytyp
> cndtlet cnfndtyp
> 308 + cndtrej cndtacnl);
> 309 + by contid;
> 310 +
> 311 + if cndtlet ne . then cndtlet =datepart(cndtlet);
> 312 + if cndtrej ne . then cndtrej =datepart(cndtrej);
> 313 + if cndtacnl ne . then cndtacnl =datepart(cndtacnl);
> 314 +
> 315 + if cnprptyp not in ('M','TM') and /* exclude
> Maintenance, Traffic Maintenance */
> 316 + cnprptyp not in ('BT','MT','RT','TT') and /* exclude
> Toll Road */
> 317 + cnhwytyp ne 'TOLL' and /* exclude
> Toll Road */
> 318 + cndtrej =. and /* Date
> Rejected must be missing */
> 319 + cndtacnl =. and /* Date
> Award Cancelled must be missing */
> 320 + cnfndtyp ne 'F/L' and
> 321 + cnfndtyp ne 'FSL' and
> 322 + cnfndtyp ne 'LPA' and
> 323 + cnfndtyp ne 'S/L' and /* exclude
> Local contracts */
> 324 +; _ _ _
> 22 22 22
> ERROR 22-322: Syntax error, expecting one of the following: a name, a
> quoted string, a numeric constant, a datetime constant, ERROR 22-322:
> Syntax error, expecting one of the following: a name, a quoted string,
> a numeric constant, a datetime constant, ERROR 22-322: Syntax error,
> expecting one of the following: a name, a quoted string, a numeric
> constant, a datetime constant,
> a missing value, INPUT, PUT. a missing
> value, INPUT, PUT. a missing value, INPUT, PUT.
>
> 325 +
> 326 + if put(contid,$accptd.) ne 'ACCEPTED';
>
|