SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 46076: Problems occur when you submit SAS® code to an OLE Automation Server when the code contains embedded CRLF (newline) characters

DetailsHotfixAboutRate It

Problems can occur when you submit SAS code to an OLE Automation Server when the code contains embedded CRLF (newline) characters. When SAS encounters an embedded CRLF character string, it also submits the next character in the code as well, which can cause errors. For example, suppose that you have a Microsoft Excel spreadsheet with Visual Basic code that connects to an OLE Automation Server. The spreadsheet submits code from a cell that contains the following code, each line of which starts in column 1 of the cell and ends with CRLF characters:

data;
run;

SAS successfully submits the first line. However, instead of stopping there, it continues and submits one character from the next line; in this case, the "r" from the RUN statement. The following error message then occurs:

1    data;r
          -
          180
ERROR 180-322: Statement is not valid or it is used out of proper order.

2    un;

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 SystemBase SASMicrosoft® Windows® for 64-Bit Itanium-based Systems9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows XP 64-bit Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft® Windows® for x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Datacenter Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Standard Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 for x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 20089.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2008 for x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows XP Professional9.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Enterprise 32 bit9.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Enterprise x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Home Premium 32 bit9.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Home Premium x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Professional 32 bit9.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Professional x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Ultimate 32 bit9.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Ultimate x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows Vista9.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows Vista for x649.21_M39.3_M29.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.