PAS2 Does Not Set the DOS ERRORLEVEL in Version 3.30

Product Version(s): 3.3x
Operating System:   MS-DOS
Flags: ENDUSER | TAR51089 buglist3.30 fixlist3.31
Last Modified: 24-FEB-1988    ArticleIdent: Q10940

Question:
   According to the documentation (Pascal user's guide, Page 134),
"The compiler supplies an exit status (to MS-DOS Versions 2.0 and
later) that can be accessed via the IF ERRORLEVEL N batch command...".
   Unfortunately, in the case of PAS2.EXE running out of memory, it
does not do this.

Response:
   This problem was present in Version 3.30 of the compiler. There is
a module called mis2 that contains error handling routines that
interface with the Pascal run-time routines in the compiler. It was
not properly setting the doseqq cell. This problem was corrected in
Version 3.31.
