Under MS-Basic, at least: The dollar signs go *after* the string variable names. String constants on lines 2, 6, and 10 are missing the necessary quote characters. Line 5 is a syntax error (needs a "GOTO" or "THEN" clause after the "IF" test). Line 5 is redundant anyway, since it's the fall-through from the comparison to "yes" on the prior line. There are two lines numbered 6, which will cause the first one to be replaced by the second one, thus the program will silently exit if the user responds to the question with anything other than "yes".
On the other hand, the infinite print loop appears to be a feature, not a bug.