| Date: | Wed, 6 Dec 2000 10:57:59 -0500 |
| Reply-To: | Gerhard Hellriegel <ghellrieg@T-ONLINE.DE> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Gerhard Hellriegel <ghellrieg@T-ONLINE.DE> |
| Subject: | Re: remove tabs from an ascii file |
|---|
On Wed, 6 Dec 2000 09:53:49 -0600, Jamil Ibrahim <jibrahim@IR.UMSMED.EDU>
wrote:
>HI sas users:
>I am trying to remove the tabs from a file . the following code removes
the tabs
>from the firsfew obs and ignores the rest of the file:
>DATA DESCB; **** REMAING QUESTIONS;
>INFILE "c:\bubble\myforms\conted0\hn01920\thn01920.txt" lrecl=300 MISSOVER
pad ;
>INPUT @1 DESC1 $CHAR200.; desc1=trim(desc1);
>if length(desc1) gt 1 ; ***REMOVES BLANK LINES;
>desc1=compress(desc1,"09'x");
>run;
>file "a:test.dat";
>put @1 desc1;
>run;
I assume a syntax-problem!
try:
....
tab="09"x;
desc1=compress(desc1,tab);
|