Compiler reports an absurd number of syntax errors

There are two common causes of this. The first is that you are using COMPIL or COMPLP on a program that contains ISAM 1.0 statements. Since these two variations of the compiler assume by default that the only ISAM is ISAMPlus, they will complain about every ISAM statement. You can solve that problem by either using OCMPIL, or adding the /I switch to COMPIL or COMPLP. Note that all three of these LIT files are identical, but work differently by looking at their own name. Thus, renaming OCMPIL to COMPIL does not work. However, if you prefer to use the command COMPIL but have it act like OCMPIL, the trick is to erase COMPIL.LIT and instead make a COMPIL.DO[2,2] that executes OCMPIL.