Usage Note 2443: EXPANDTABS options on INFILE statement causes incorrect value on LENGTH
option
When specifying the EXPANDTABS option in conjunction with the LENGTH=
option on the INFILE statement, the LENGTH= option returns an
incorrect length. It returns the linesize value instead of the actual
length of the record, thus causing problems when using the $VARYINGw.
informat.
In the following example you receive the note "SAS went to a new line
when input reached past the end of a line." because the width of
$VARYINGw. is based on the incorrect LENGTH= value:
data test;
infile indd length=_len expandtabs;
input line $varying200. _len;
run;
The circumvention is to add the TRUNCOVER option on the INFILE
statement.
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | Base SAS | Microsoft Windows 95/98 | 8 TS M0 | 8.1 TS1M0 |
| Microsoft Windows NT Workstation | 8 TS M0 | 8.1 TS1M0 |
| 64-bit Enabled Solaris | 8 TS M0 | 8.1 TS1M0 |
| OpenVMS VAX | 8 TS M0 | 8.1 TS1M0 |
| Solaris | 8 TS M0 | 8.1 TS1M0 |
| ABI+ for Intel Architecture | 8 TS M0 | 8.1 TS1M0 |
| z/OS | 8 TS M0 | 8.1 TS1M0 |
| OS/2 | 8 TS M0 | 8.1 TS1M0 |
| IRIX | 8 TS M0 | 8.1 TS1M0 |
| HP-UX | 8 TS M0 | 8.1 TS1M0 |
| OpenVMS Alpha | 8 TS M0 | 8.1 TS1M0 |
| 64-bit Enabled HP-UX | 8 TS M0 | 8.1 TS1M0 |
| CMS | 8 TS M0 | 8.1 TS1M0 |
| Microsoft Windows 2000 Professional | 8 TS M0 | 8.1 TS1M0 |
| 64-bit Enabled AIX | 8 TS M0 | 8.1 TS1M0 |
| Tru64 UNIX | 8 TS M0 | 8.1 TS1M0 |
| AIX | 8 TS M0 | 8.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: | medium |
| Topic: | SAS Reference ==> Procedures ==> OPTIONS
|
| Date Modified: | 2000-04-14 12:46:03 |
| Date Created: | 2000-04-14 12:46:03 |