Problem Note 66173: The code editor in SAS® Studio generates incorrect characters after you enter a right parenthesis followed by an equal sign (=)
In SAS® Studio 3.81 and SAS® Studio 3.82, if you select the Enable autocomplete check box Editor option from More Application Options ► Preferences ► Code and Log, the Code Editor window creates a duplicate equal sign after an end parenthesis. If you delete the second equal sign, the next character is single, but the following character duplicates again.
To circumvent this issue, clear the Enable autocomplete check box Editor option from More Application Options ► Preferences ► Code and Log.
Click the Hot Fix tab in this note to access the hot fix for this issue.
In the code editor in SAS® Studio 4.4, entering a right parenthesis, ), followed by an equal sign causes the next value to be entered incorrectly.
This problem occurs in both DATA step code and SQL procedure code. The behavior occurs only when the autocomplete preference is enabled.
For example, if you enter the sequence “123456” for the value below, you see the following:
data x;
set sashelp.class;
if year(name) = 1655443322
In PROC SQL, the equal sign is duplicated and then the following characters are not correct.
The workaround is to add another statement to create a variable that uses the function that uses parentheses.
Here is an example, in which the following syntax would replace if year(date) = 2020 in your code:
date_year=year(date);
if date_year = 2020;
Operating System and Release Information
SAS System | SAS Studio | Microsoft Windows 8 Enterprise 32-bit | 3.81 | | | |
Microsoft® Windows® for x64 | 3.81 | | | |
Microsoft Windows 8 Enterprise x64 | 3.81 | | | |
Microsoft Windows 8 Pro 32-bit | 3.81 | | | |
Microsoft Windows 8 Pro x64 | 3.81 | | | |
Microsoft Windows 8.1 Enterprise 32-bit | 3.81 | | | |
Microsoft Windows 8.1 Enterprise x64 | 3.81 | | | |
Microsoft Windows 8.1 Pro 32-bit | 3.81 | | | |
Microsoft Windows 8.1 Pro x64 | 3.81 | | | |
Microsoft Windows 10 | 3.81 | | | |
Microsoft Windows 11 | 3.81 | | | |
Microsoft Windows 95/98 | 3.81 | | | |
Microsoft Windows 2000 Advanced Server | 3.81 | | | |
Microsoft Windows 2000 Datacenter Server | 3.81 | | | |
Microsoft Windows 2000 Server | 3.81 | | | |
Microsoft Windows 2000 Professional | 3.81 | | | |
Microsoft Windows NT Workstation | 3.81 | | | |
Microsoft Windows Server 2003 Datacenter Edition | 3.81 | | | |
Microsoft Windows Server 2003 Enterprise Edition | 3.81 | | | |
Microsoft Windows Server 2003 Standard Edition | 3.81 | | | |
Microsoft Windows Server 2003 for x64 | 3.81 | | | |
Microsoft Windows Server 2008 | 3.81 | | | |
Microsoft Windows Server 2008 R2 | 3.81 | | | |
Microsoft Windows Server 2008 for x64 | 3.81 | | | |
Microsoft Windows Server 2012 Datacenter | 3.81 | | | |
Microsoft Windows Server 2012 R2 Datacenter | 3.81 | | | |
Microsoft Windows Server 2012 R2 Std | 3.81 | | | |
Microsoft Windows Server 2012 Std | 3.81 | | | |
Microsoft Windows Server 2016 | 3.81 | | | |
Microsoft Windows Server 2019 | 3.81 | | | |
Microsoft Windows Server 2022 | 3.81 | | | |
Microsoft Windows XP Professional | 3.81 | | | |
Windows 7 Enterprise 32 bit | 3.81 | | | |
Windows 7 Enterprise x64 | 3.81 | | | |
Windows 7 Home Premium 32 bit | 3.81 | | | |
Windows 7 Home Premium x64 | 3.81 | | | |
Windows 7 Professional 32 bit | 3.81 | | | |
Windows 7 Professional x64 | 3.81 | | | |
Windows 7 Ultimate 32 bit | 3.81 | | | |
Windows 7 Ultimate x64 | 3.81 | | | |
Windows Millennium Edition (Me) | 3.81 | | | |
Windows Vista | 3.81 | | | |
Windows Vista for x64 | 3.81 | | | |
64-bit Enabled AIX | 3.81 | | | |
64-bit Enabled Solaris | 3.81 | | | |
HP-UX IPF | 3.81 | | | |
Linux for x64 | 3.81 | | | |
Solaris for x64 | 3.81 | | | |
SAS System | SAS Studio for Viya | Microsoft® Windows® for x64 | 4.4 | 5.2 | Viya | Viya |
Linux for x64 | 4.4 | 5.2 | Viya | Viya |
*
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.
If the autocomplete preference is enabled, the code editor window will generate incorrect characters after you enter a right parenthesis followed by an equal sign (=)
Type: | Problem Note |
Priority: | high |
Date Modified: | 2023-09-29 13:14:15 |
Date Created: | 2020-06-19 16:06:18 |