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 (October 2010, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Sterling Paramore <gnilrets@GMAIL.COM>
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


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