Usage Note 36612: Handling of tab characters in SAS® code that is used in Windows environments
Under Windows, SAS treats tab characters in code differently in batch programs than it does in the interactive SAS editors, as follows:
- When a SAS program containing tab characters ('09'x, in hexadecimal notation) is submitted in batch, the tab characters are processed as is within code (for example, in CARDS or DATALINES statement blocks), and they can be used as input delimiters.
- When tab characters are present in code that is opened in the SAS Program Editor, the tab characters are replaced by blanks in the editor window and when the code is submitted.
- When tab characters are present in code that is opened in the SAS Enhanced Editor, the tab characters are preserved in the editor. However, they are replaced by blanks when the code is submitted. This happens regardless of what options are set in the Enhanced Editor.
When SAS code is submitted interactively and tab characters are replaced with blanks, the results can be unpredictable, including the generation of error messages or notes similar to the following:
NOTE: Invalid data for {variable} in line {n} {cols}.
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
To avoid this issue, you either need to run your code in batch mode or change your code so that the tab character is not a syntactic requirement.
Operating System and Release Information
SAS System | Base SAS | Microsoft® Windows® for 64-Bit Itanium-based Systems | | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | | |
Microsoft Windows XP 64-bit Edition | | |
Microsoft® Windows® for x64 | | |
Microsoft Windows 2000 Advanced Server | | |
Microsoft Windows 2000 Datacenter Server | | |
Microsoft Windows 2000 Server | | |
Microsoft Windows 2000 Professional | | |
Microsoft Windows NT Workstation | | |
Microsoft Windows Server 2003 Datacenter Edition | | |
Microsoft Windows Server 2003 Enterprise Edition | | |
Microsoft Windows Server 2003 Standard Edition | | |
Microsoft Windows Server 2008 | | |
Microsoft Windows XP Professional | | |
Windows Vista | | |
*
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.
Date Modified: | 2009-09-04 09:57:48 |
Date Created: | 2009-07-24 11:26:34 |