ERROR 180-322: Statement is not valid or it is used out of proper order.
ERROR 180-322: Statement is not valid or it is used out of proper order.
ERROR 180-322: Statement is not valid or it is used out of proper order.
ERROR 180-322: Statement is not valid or it is used out of proper order.
ERROR 180-322: Statement is not valid or it is used out of proper order.
NOTE: The above message was for the following by-group:
LOT_ID=AL100418
ERROR 180-322: Statement is not valid or it is used out of proper order.
ERROR 180-322: Statement is not valid or it is used out of proper order.
NOTE: The above message was for the following by-group:
LOT_ID=AL100436
ERROR 180-322: Statement is not valid or it is used out of proper

Re: difference 9.1 and 9.2

Hi:
Actually, the error is coming for a BY group, so it's possible that the error is not in the COMPUTE block. If you are trying to use a BY variable in a COMPUTE block, then it MUST be in your COLUMN statement. I can't think of anything else. You might try changing the color to CXCD5916 (with CX instead of #) -- but I think HTML color names also worked in SAS 9.1.

I no longer have SAS 9.1 to test on. You might want to open a track with Tech Support as they could look at your data and ALL your code and test on SAS 9.1.