V9 has a PUTLOG statement for just such purposes.
Kevin Myers wrote:
> I seem to be feeling rather dense this afternoon...
> In a single data step, I want to write output to both an external file =
> and to the SAS system log. Is there any way of doing this *without* =
> using a file statement with the filevar option?
> I also need to use recfm=3Dn for writing to the external (binary) file, =
> which isn't appropriate for writing to the log...
> Kevin M.