A recording medium recorded on which a program for obtaining compensation exposure data for compensating for pattern dimension variation caused by a re-scattered electron beam when an electron beam resist is exposed to the electron beam with predetermined exposure patterns, is recorded, the program comprising:
- a program module for dividing the predetermined exposure pattens into square sections and determining a dose of supplemental exposure to the re-scattered electron beam when adjacent sections are exposed, for each section;
- a program module for determining a compensation exposure dose for each section by deducting the supplemental exposure dose of each section from a predetermined reference value;
- and
- a program module for setting-up compensation exposure patterns for each section with predetermined compensation exposure patterns so as to expose an area proportional to the compensation exposure dose for each section.