In reply to Leonid Batkhan.

The exercise went pretty smoothly--it took me about two minutes to fix this code. I don't want to spoil any of the bugs for other readers, so I'll speak in broad terms. I used SAS Studio and can confirm that the format code option really helped, as did the editor's color coding for uncovering unbalanced quotes, and examining the output data for inconsistencies.