Date: Wed, 21 Jul 2010 14:54:35 -0500
Reply-To: "Data _null_;" <iebupdte@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Data _null_;" <iebupdte@GMAIL.COM>
Subject: Re: summary statistics of all variables
In-Reply-To: <102748.1667.qm@web32406.mail.mud.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1
On 7/21/10, Dale McLerran <stringplayer_2@yahoo.com> wrote:
> /* Parse the ascii file employing the following steps */
> data sumstats;
> length vname $ 32 line $ 200;
> infile "c:\temp\sumstats.lst" length=linelen end=lastrec;
> input _tmp $char1. @;
input _tmp $char1. @;
What does the preceeding INPUT statement do?
> input @1 line $varying200. linelen;
> if left(line)=:"-----" then do until(lastrec);
> input _tmp $char1. @;
input _tmp $char1. @;
And again?
> input @1 line2 $varying200. linelen @;
> if left(line2)^=:"-----" then do;
> input @1 vname nmiss n min max;
> output;
> end;
> end;
> keep vname nmiss n min max;
> run;
> That we cannot get the statistics in a vertical file directly
> is a real pain in the patootie.
I agree.