Date: Mon, 13 May 2002 11:28:31 -0400
Reply-To: "Fehd, Ronald J." <rjf2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J." <rjf2@CDC.GOV>
Subject: Re: format and macros
> From: William Kossack [mailto:kossackw@NJC.ORG]
> My code seems to be working except for when I try to use a
> format inside a macro I get the following
> NOTE 137-205: Line generated by the invoked macro "CREATE".
> 5 &&varn&x=put(&&varn&x,codesc.);
> ERROR 48-59: The format CODESC was not found or could not be loaded.
> below is the critical part of my sas code. among other conversions I
> need to
> fix data where they have code the text "Little", "Some",
> "Much", etc into the dataset.
> proc format;
> value $codesc "None" = "0"
as I suspected you built a character format: $codesc.
and are using a numeric format reference : codesc.
Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov
Your task is simple: remove the difference
between how things should be
and how they really are.
-- Ashleigh Brilliant pot-shot #4247