SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 45926: PROC COMPILE trade method "ERROR: You cannot access variable while you are in method ."

DetailsHotfixAboutRate It

When you run a PROC COMPILE step that defines a trade method in SAS® Risk Dimensions®, you might encounter an error like the following:

ERROR: You cannot access variable <variable-name> while you are in method <method-name>.

This error occurs when you attempt to access an instrument variable or a project variable from within a trade method. These types of variables should be accessible to the method. However, PROC COMPILE incorrectly fails.

The workaround is to not access instrument or project variables from within a trade method.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Risk Dimensions Enterprise EditionMicrosoft® Windows® for x645.3_M15.49.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Datacenter Edition5.3_M15.49.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition5.3_M15.49.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Standard Edition5.3_M15.49.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 for x645.3_M15.49.2 TS2M39.3 TS1M2
Microsoft Windows Server 20085.3_M15.49.2 TS2M39.3 TS1M2
Microsoft Windows Server 2008 for x645.3_M15.49.2 TS2M39.3 TS1M2
Microsoft Windows XP Professional5.3_M15.49.2 TS2M39.3 TS1M2
Windows 7 Enterprise 32 bit5.3_M15.49.2 TS2M39.3 TS1M2
Windows 7 Enterprise x645.3_M15.49.2 TS2M39.3 TS1M2
Windows 7 Home Premium 32 bit5.3_M15.49.2 TS2M39.3 TS1M2
Windows 7 Home Premium x645.3_M15.49.2 TS2M39.3 TS1M2
Windows 7 Professional 32 bit5.3_M15.49.2 TS2M39.3 TS1M2
Windows 7 Professional x645.3_M15.49.2 TS2M39.3 TS1M2
Windows 7 Ultimate 32 bit5.3_M15.49.2 TS2M39.3 TS1M2
Windows 7 Ultimate x645.3_M15.49.2 TS2M39.3 TS1M2
Windows Vista5.3_M15.49.2 TS2M39.3 TS1M2
Windows Vista for x645.3_M15.49.2 TS2M39.3 TS1M2
64-bit Enabled AIX5.3_M15.49.2 TS2M39.3 TS1M2
64-bit Enabled HP-UX5.3_M15.49.2 TS2M39.3 TS1M2
64-bit Enabled Solaris5.3_M15.49.2 TS2M39.3 TS1M2
HP-UX IPF5.3_M15.49.2 TS2M39.3 TS1M2
Linux5.3_M15.49.2 TS2M39.3 TS1M2
Linux for x645.3_M15.49.2 TS2M39.3 TS1M2
Solaris for x645.3_M15.49.2 TS2M39.3 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.