Date: Mon, 12 Feb 1996 17:36:17 PST
Reply-To: TWB2%Rates%FAR@GO50.COMP.PGE.COM
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: TWB2%Rates%FAR@GO50.COMP.PGE.COM
Subject: Probably a Felony to Post
Now this, in my book, is obscene (or at least indecent):
19 %macro scanit(string,word);
20 %let part=%scan(&string,&word,'\');
21 %put PART= ∂
22 %mend scanit;
23 %scanit(string=fileservice\loadhist\badpulse,word=1);
PART= FILESERVICE
24 %scanit(string=\fileservice\loadhist\badpulse,word=1);
PART= FILESERVICE
The %scan function is ignoring leading delimiters. Yes, I can get around it
with %let string=garbage\&string;--that is why it is just indecent.
Tim Berryhill - Contract Programmer and General Wizard
TWB2@PGE.COM
Frequently at Pacific Gas & Electric Co., San Francisco
The correlation coefficient between their views and
my postings is slightly less than 0
|