|PM/2 for DOS� Technical Support FAQ pages
Q: How do I recover from the "Variable does not exist: G_xxxxxx" error message?
A: This error message means that the G.MEM file has been damaged.
G.MEM contains important startup and configurationÂ information for PM/2 for DOS. It is vulnerable to damage when there is a power surge or failure, or when the power is shut off to the computer prior to receiving the "Thank you" message.
PM/2 keeps a backup copy of G.MEM, called G.BAK, right in your MGR folder. To restore from this backup, you can either:
COPY G.BAK G.MEM [enter]
- Use the Windows Explorer. Open the MGR folder and identify the G.BAK file on the right hand side of the display. Highlight it, then click Edit, Copy, Edit, Paste. This will create a new file called "copy of g.bak". Change the name of this file to G.MEM by right-clicking the "copy of g.bak" file. Select "rename" from the popup menu, and type in G.MEM as the new name.
- Or get the DOS C:MGR> prompt and type in the command:
Each of these methods will produce identical results, and PM/2 can then be restarted. Check your User ID and Printer Selection windows after implementing methods 1, 2 or 3; this is not necessary after implementing method 4.
- Or click the Recover icon in the PM/2 for DOS program group, if one exists.
- Or restore the file G.MEM (ONLY) from your most recent tape or diskette backup.
Back to main FAQ page