Date: Thu, 23 Mar 2006 12:51:39 -0500
Reply-To: Venky Chakravarthy <swovcc@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Venky Chakravarthy <swovcc@HOTMAIL.COM>
Subject: Re: title not printing
You are probably running interactively and have left overs from a previous
run. Look carefully, if you have a Title you should have something in the
body unless you do something fancy as in the second situation below.
An empty data set will not print and should not be having a title printed
either. To confirm this close and open your SAS session (after saving what
you have :-).) and try to run the following as your first job.
data test ;
x = "abcdefg" ;
title "This is an empty dataset" ;
proc print data = test ;
On the other hand if you really want to print the title with no body try the
options nodate nonumber ;
data test2 ;
x = " " ;
label x = "00"x ;
title "This is NOT REALLY an empty dataset" ;
proc print data = test2 nobs label ;
On Thu, 23 Mar 2006 12:14:55 -0500, Nishant Dholakia
>I was trying to write in a code to analyse the logs produced. The program
>works fine except for one minor issue. There is a proc print on an empty
>dataset because I want to print out a title and after execution the title
>does not print even though the proc print is executed.
>This is the interesting part of the log
>NOTE: No observations were selected from data set WORK.LOG_FILE.
>NOTE: There were 0 observations read from the data set WORK.LOG_FILE.
> WHERE (UPCASE(log)=:'WARNING') or (UPCASE(log)='ERROR');
>NOTE: PROCEDURE PRINT used:
> real time 0.00 seconds
> cpu time 0.00 seconds
>Now does this mean that the print was not executed because real time as
>well as cpu time is 0.
>I tried proc print on several other empty datasets with only title
>statementts and they run fine (as in the title is printed).
>Its just an interesting observation. Comments would be really welcome coz i
>wont be able to sleep until I figure this one out...hope I am not doing
>something really silly.