Date: Fri, 26 Nov 2010 15:53:40 -0500
Reply-To: bbser2009 <bbser2009@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: bbser2009 <bbser2009@GMAIL.COM>
Subject: Re: variable-length records
In-Reply-To: <201011220921.oALC7tlN000531@malibu.cc.uga.edu>
Content-Type: text/plain; charset="iso-8859-1"
A follow-up question:
Given a SAS data set, how can we make a raw data file of variable-length
records?
Thanks.
Max
-----Original Message-----
From: S øren Lassen [mailto:s.lassen@POST.TELE.DK]
Sent: November-22-10 4:21 AM
To: SAS-L@LISTSERV.UGA.EDU; Bbser 2009
Subject: Re: variable-length records
You can use the length= options on the infile statement, e.g.
data _null_;
infile temp length=l;
input;
put l=;
run;
The variable L will contain the record length - note that L is not
written to the output dataset.
Regards,
Søren
On Thu, 18 Nov 2010 20:37:37 -0500, bbser2009 <bbser2009@GMAIL.COM> wrote:
>Hi there,
>
>I was told to use PAD option in INFILE statement when reading raw data file
>of variable-length records.
>But I was wondering, how could I know a given file actually consists of
>variable-length records?
>Thanks.
>
>Max
|