SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 43858: SAS® 9.2 creates an incorrectly formatted fixed-length record file when the record length is an odd number

DetailsHotfixAboutRate It

If you create a fixed-length record file where the record length of every record in the file is an odd number, the file is formatted incorrectly.

Here is an example of a program that creates a fixed-length record file called outfile.dat:

   DATA _NULL_;
   FILE "OUTFILE.DAT" LRECL=15 RECFM=F;
   AA='ABCDEFGHIJKLMNO';
   DO X = 1 TO 4;
      PUT @1  AA   $15.;
   END;
   RUN;

The contents of outfile.dat are then incorrect:

   $ TYPE OUTFILE.DAT
   ABCDEFGHIJKLMNO
   BCDEFGHIJKLMNOA
   CDEFGHIJKLMNOAB
   DEFGHIJKLMNO

Select the Hot Fix tab in this note to access the hot fix for this problem.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASOpenVMS on HP Integrity9.21_M39.2 TS2M3
* 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.