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 (November 2010, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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