| Date: | Tue, 23 Oct 2001 11:56:53 +0100 |
| Reply-To: | Peter Crawford <peter.crawford@DB.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Peter Crawford <peter.crawford@DB.COM> |
| Subject: | Re: Help on "truncover dlm='0920'x;" |
| Content-type: | text/plain; charset=iso-8859-1 |
Bill Kreamer asks
> Does ... truncover dlm='0920'x ... mean skip over any "tabs"?
.... perhaps...
In regular use (without DSD) the delimiter is blank ('20'x on ascii systems)
Adding '09'x to the default just treats it the same as blank.
This becomes significant when the DSD option is used when
consecutive delimiters imply fields with missing values.
However, when the infile statement doesn't contain DSD you could
simplify this dlm='0920'x code and achieve the same effect by
just replacing that dlm= option with infile option ExpandTabs.
Then the input statements see the text just as we would read it.
From on-line help (v6, v8, win/unix/os390)
EXPANDTABS | NOEXPANDTABS
Specifies whether to expand tab characters to the standard tab
setting, which is set at 8 column intervals starting at column 9.
NOEXPANDTABS is the default. EXPANDTABS is useful if you are reading
data that contain the tab character native to your host system.
Shame those code authors were not aware of this option,
Regards
Peter Crawford
Bill Kreamer wrote:
>
> Hi folks,
>
> I'm trying document (ie remember why I was told to do it this way)
> some macro code that I used to read data from a number of irregularly
> formatted ascii files (output from a laboratory instrument). I think
> the data files had some occasional "tabs" imbedded in the files to
> insure that columns of numberss would line up when the files was
> viewed in Notepad.
>
> the line of macro code is below:
>
> infile &&vars&i truncover dlm='0920'x;
>
> Does ... truncover dlm='0920'x ... mean skip over any "tabs"?
>
> If so why do you have to specify it in this manner?
>
> Thanks,
>
> Bill
>
> kreamer@waisman.wisc.edu
> UW-Madison
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
|