Problem Note 36880: Pagesize can increase when blank lines are written to a file using the DATA Step and a FOOTNOTE statement
In the DATA Step, when writing to a file and using the FOOTNOTE statement, the pagesize setting might be increased by the number of blank lines written to the file ahead of non-blank lines. The initial pagesize setting is used for the first page but is increased for all subsequent pages. This problem only occurs when the program is submitted as a batch process on a UNIX or a z/OS system, using the DATA Step to write to a file with a FOOTNOTE statement, and writing blank lines to the file ahead of non-blank lines.
Following is a sample program that reproduces the problem. In this program the pagesize is set to 40. Because two blank lines are written ahead of the non-blank line and the FOOTNOTE statement is being used, the pagesize of 40 is used for the first page but increases to a pagesize of 42 for the second page.
footnote "This is a footnote";
options pagesize=40 NOCENTER NODATE NONUMBER;
data test;
file print notitles footnotes;
test = " ";
put @1 test;
put @1 test;
put "one";
put _page_;
put @1 test;
put @1 test;
put "two";
run;
To circumvent the problem you can use an unprintable character such as '00'x or '09'x for the PUT statement in place of a blank space to give the illusion of a blank line being written to the file. Another circumvention is to use blank TITLE statements instead of writing blank lines with the PUT statement when needing to have blank lines written ahead of non-blank lines.
Operating System and Release Information
| SAS System | Base SAS | OpenVMS Alpha | 9.1 TS1M3 | |
| Tru64 UNIX | 9.1 TS1M3 | |
| Linux | 9.1 TS1M3 | |
| z/OS | 9.1 TS1M3 | |
| 64-bit Enabled AIX | 9.1 TS1M3 | |
| 64-bit Enabled HP-UX | 9.1 TS1M3 | |
| 64-bit Enabled Solaris | 9.1 TS1M3 | |
| HP-UX IPF | 9.1 TS1M3 | |
*
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: | Problem Note |
| Priority: | medium |
| Topic: | SAS Reference ==> DATA Step Common Programming Tasks ==> Reading and Writing External Data Common Programming Tasks ==> Reading and Writing External Data ==> File Options SAS Reference ==> Statements ==> File-handling ==> FILE SAS Reference ==> Statements ==> File-handling ==> PUT SAS Reference ==> Statements ==> Log Control ==> PAGE SAS Reference ==> Statements ==> Output Control ==> FOOTNOTE
|
| Date Modified: | 2009-08-14 15:58:02 |
| Date Created: | 2009-08-14 14:04:13 |