Problem Note 7456: #BYVAL used in a TITLE statement in conjunction with PROC PRINT output displays an incorrect value
If the BYLINE system option is in effect and #BYVAL is used in a TITLE statement in conjunction with PROC PRINT, output routed to the Listing destination will contain an incorrect title for each page. The sequence is off by one, meaning that the TITLE on the first page displays the second value of the BY variable, and so on. On the last page, the text "#byval(byvar)" is displayed.
The following code replicates the problem:
proc sort data=sashelp.class ;
by sex ;
run;
title1 'List of sashelp.class by sex';
title2 'for #byval(sex)';
proc print data=sashelp.class noobs ;
by sex ;
run;
To circumvent the problem for the Listing destination, use the NOBYLINE system option. For similar issues related to other ODS destinations, see SAS Note 1740.
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows 95/98 | 8.2 TS2M0 | |
Microsoft Windows NT Workstation | 8.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 8.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 8.2 TS2M0 | 9.3 TS1M0 |
Windows Millennium Edition (Me) | 8.2 TS2M0 | |
Microsoft Windows 2000 Professional | 8.2 TS2M0 | |
Microsoft Windows 2000 Server | 8.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 8.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows 2000 Advanced Server | 8.2 TS2M0 | |
Microsoft Windows 2000 Datacenter Server | 8.2 TS2M0 | |
IRIX | 8.2 TS2M0 | 9.3 TS1M0 |
64-bit Enabled Solaris | 8.2 TS2M0 | 9.3 TS1M0 |
OpenVMS VAX | 8.2 TS2M0 | 9.3 TS1M0 |
Solaris | 8.2 TS2M0 | 9.3 TS1M0 |
OS/2 | 8.2 TS2M0 | |
z/OS | 8.2 TS2M0 | 9.3 TS1M0 |
Linux | 8.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows XP Professional | 8.2 TS2M0 | 9.3 TS1M0 |
ABI+ for Intel Architecture | 8.2 TS2M0 | 9.3 TS1M0 |
CMS | 8.2 TS2M0 | 9.3 TS1M0 |
HP-UX | 8.2 TS2M0 | 9.3 TS1M0 |
64-bit Enabled HP-UX | 8.2 TS2M0 | 9.3 TS1M0 |
OpenVMS Alpha | 8.2 TS2M0 | 9.3 TS1M0 |
64-bit Enabled AIX | 8.2 TS2M0 | 9.3 TS1M0 |
Tru64 UNIX | 8.2 TS2M0 | 9.3 TS1M0 |
AIX | 8.2 TS2M0 | 9.3 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: | Problem Note |
Priority: | medium |
Topic: | SAS Reference ==> Procedures ==> PRINT
|
Date Modified: | 2003-11-26 10:32:36 |
Date Created: | 2002-05-07 11:38:13 |