Usage Note 44493: "ERROR: The variable has not been declared as an object" when compiling a SAS/AF® SCL program
When attempting to compile an SCL program within SAS/AF, you might receive the following error:
NOTE: Compiling TEST.FRAME (WORK.TEST.TEST.SCL).
ERROR: [Line 2] The variable radiobox2 has not been declared as an object.
ERROR: Compile error(s) detected. No code generated.
NOTE: Entry TEST.FRAME saved without intermediate code.
If you encounter this error, it is usually caused by one of the following reasons:
- You do not have an object by that name defined to the Frame or within the associated SCL program.
Verify that you have correctly spelled the object name or that you have not deleted it from the Frame. You can verify the object name by making sure that it exists in the Frame Properties window.
- You are trying to compile the SCL entry directly from the SAS Explorer.
In order for an SCL entry associated with a Frame to correctly be associated with the Frame and its controls, you must compile the associated Frame in the SAS Explorer instead of the SCL entry.
- You have the SCL entry of the Frame opened separately instead of opening it from within the associated Frame when you try to compile.
Verify that you are opening the SCL entry from within the associated Frame before you attempt to compile the SCL program.
Operating System and Release Information
SAS System | SAS/AF | z/OS | 9.1 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M0 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Professional | 9.1 TS1M0 | |
Microsoft Windows NT Workstation | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | |
Microsoft Windows XP Professional | 9.1 TS1M0 | |
64-bit Enabled AIX | 9.1 TS1M0 | |
64-bit Enabled HP-UX | 9.1 TS1M0 | |
64-bit Enabled Solaris | 9.1 TS1M0 | |
HP-UX IPF | 9.1 TS1M0 | |
Linux | 9.1 TS1M0 | |
OpenVMS Alpha | 9.1 TS1M0 | |
Tru64 UNIX | 9.1 TS1M0 | |
*
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.
Type: | Usage Note |
Priority: | |
Topic: | Common Programming Tasks
|
Date Modified: | 2015-12-18 16:05:43 |
Date Created: | 2011-10-03 11:22:46 |