LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (August 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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