Date: Fri, 17 Aug 2007 09:29:25 +0200
Reply-To: SAS-L List <sas-l@listserv.uga.edu>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robert Bardos <bardos2@ANSYS.CH>
Subject: Re: Data step - skip shorter record ?
In-Reply-To: <1187301457.952906.158190@a39g2000hsc.googlegroups.com>
Content-Type: text/plain; charset="us-ascii"
> Von: newbie
> Gesendet: Donnerstag, 16. August 2007 23:58
>
> So, can i, in some way, get the record length and the delete that
> record if it is below 25536 ? all the *good* records are of the same
> length.
> something like,
> input.... @;
> if record_length < 25536 then delete;
>
> Thanks
>
Yep, you can. Look up the LENGTH= option of the infile statement.
You will wind up with something like
infile ... length=record_length ... ;
input @ ;
if record_length < 25536 then delete ;
input ... ;
Note the very simple form of the first input statement.
Robert
|