Shireen,
 
Assuming your output file is a SAS dataset, the following should do it (somewhat tested):
 
data b;
     set a end=eof;
     if eof then output;
run;

HTH.

Robert Abelson
Bureau of Labor Statistics
abelson_r@bls.gov
"Anyone who thinks he has a better idea of what's good for people than people do is a swine."
- P.J.O'Rourke

-----Original Message-----
From: shireen p [mailto:shireenp@HOTMAIL.COM]
Sent: Wednesday, August 08, 2001 3:04 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Last record output

Hello,
Say I have an output file with many observations and the number of observations in the output file could vary. If I am intersted only in the last observation of teh output file (ie) the last record how could I get SAS to only print that last observation out and not all of them.
This is because in my last record I have the cumulative values and that is all I need. Any suggestions are appreciated.
Shireen
 


Get your FREE download of MSN Explorer at http://explorer.msn.com