If you want to store the compiled code u can use the following syntax:
COMPILE "c:\TEMP\hai.p" SAVE.(saves the compiled .r file in same folder where .p exists)
or
COMPILE "c:\TEMP\hai.p" SAVE into c:\XYZ\. (saves the compiled .r file in diferent folder specified XYZ here)