Problem Note 40403: PUTLOG statement details
The PUTLOG statement functions identically as the ERROR statement, but does not modify the _ERROR_ variable. The PUTLOG statement works almost the same as the PUT statement, but always outputs to the Log.
You can't have a + or ( after PUTLOG. If so, SAS thinks that PUTLOG is a variable or an array. Below are some examples showing what works and what does not.
/* This doesn't work. Treats PUTLOG as an array. */
PUTLOG (_ALL_)(=/);
/* This doesn't work. Treats PUTLOG as a variable. */
PUTLOG +5 'here!';
/* However, putting an @ first gets these to work... */
PUTLOG @1 (_ALL_)(=/);
PUTLOG @1 +5 'here!';
Operating System and Release Information
SAS System | Base SAS | z/OS | 9 TS M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9 TS M0 | |
Microsoft Windows 2000 Advanced Server | 9 TS M0 | |
Microsoft Windows 2000 Datacenter Server | 9 TS M0 | |
Microsoft Windows 2000 Server | 9 TS M0 | |
Microsoft Windows 2000 Professional | 9 TS M0 | |
Microsoft Windows NT Workstation | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | |
Microsoft Windows XP Professional | 9 TS M0 | |
64-bit Enabled AIX | 9 TS M0 | |
64-bit Enabled HP-UX | 9 TS M0 | |
64-bit Enabled Solaris | 9 TS M0 | |
HP-UX IPF | 9 TS M0 | |
Linux | 9 TS M0 | |
OpenVMS Alpha | 9 TS M0 | |
Tru64 UNIX | 9 TS M0 | |
*
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 ==> Statements ==> Log Control
|
Date Modified: | 2010-07-26 14:24:25 |
Date Created: | 2010-07-21 14:28:39 |