Date: Fri, 29 Oct 2010 08:49:24 -0500
Reply-To: Robin R High <rhigh@UNMC.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robin R High <rhigh@UNMC.EDU>
Subject: Re: proc fcmp warning message
In-Reply-To: <AANLkTimkBuiRFn19FKqa-VQrazADV3xv-Hb5SdtUEPVm@mail.gmail.com>
Content-Type: text/plain; charset="US-ASCII"
Sterling,
You only need to run the code for PROC FCMP once. The warning message
appears when the function with that name (addperiod) is already there and
you run the FCMP code again. If you are running windows, you could avoid
the message by placing the function code in a separate file and run the
function code once and then run the data step(s) that access the function
in a separate file (among other ways).
Robin High
UNMC
From:
Sterling Paramore <gnilrets@GMAIL.COM>
To:
SAS-L@LISTSERV.UGA.EDU
Date:
10/27/2010 01:00 PM
Subject:
proc fcmp warning message
Sent by:
"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Dear L,
I wrote a proc fcmp to process some icd-9 codes:
proc fcmp outlib = WORK.Functions.Diag;
function addperiod(diag$)$;
length diagp $6;
if length(diag) <= 3 then
diagp = diag;
else
diagp = substr(diag,1,3) || '.' || substr(diag,4,2);
return(diagp);
endsub;
run;
However, when I run this, I get the following irritating warning message:
WARNING: Function addperiod is already defined in packet Diag. Function
addperiod as defined in the current program will be used as
default when packet is not specified.
What is the best way to avoid this warning message?
Thanks,
Sterling