LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2010, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Dale McLerran <stringplayer_2@yahoo.com>
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.


Back to: Top of message | Previous page | Main SAS-L page