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 (October 1997, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 24 Oct 1997 09:09:03 -0400
Reply-To:   Rasanen <_nospam_rasanen@EMAIL.MSN.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Rasanen <_nospam_rasanen@EMAIL.MSN.COM>
Subject:   Re: reading data every second or third line

Bert,

This would output values 2,4 only:

data a;input / @1 abc $1.; lines; 1 2 3 4 5 ; -- rasanen@sprynet.com - Microsoft MVP Web Site: http://home.sprynet.com/sprynet/rasanen/ ~ American Express TRS

Bert Ventresca wrote in message <01BCDFA4.CF163160@cpsbv.cciw.ca>... Is there any easy way in sas to read only every second record or every whatever record from a data file via an input statement? Each record in the file has parameters and I am presently using all the data in the file,I would like to run my program using only every other data record or maybe every 3rd record only. Many thanks Bert


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