| Date: | Wed, 26 Dec 2007 16:26:43 +0100 |
| Reply-To: | Andre Wielki <wielki@INED.FR> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Andre Wielki <wielki@INED.FR> |
| Subject: | Re: format question. |
|
| In-Reply-To: | <OF6A58D5F2.46DFFEA8-ON862573BD.005089B9-862573BD.00515F04@fd9ns01.okladot.state.ok.us> |
| Content-Type: | text/plain; charset=ISO-8859-1; format=flowed |
Masuod Pajoh a écrit :
> &ddate is 17JAN06.
> This:
> title3 "BID OPENING OF &ddate.";
> returns:
> BID OPENING OF 17JAN06
>
> This:
> title3 "BID OPENING OF %sysfunc(put(&ddate.,worddate.))";
> returns:
> BID OPENING OF
> and log says:
> title3 "BID OPENING OF %sysfunc(put(&ddate.,worddate.))";
> ERROR: The PUT function referenced in the %SYSFUNC or %QSYSFUNC macro
> function is not found.
>
> I want the title to be:
> BID OPENING OF January 17, 2006.
>
> How can I do that?
> Masoud
>
>
Macro language content is text and only text
and a sasdate is a numùeric value
see following pgm
*%let ddate=17Jan06;
data _null_;
dat="17jan06"d;
call symputx('ddat',put(dat,worddate18.));
run;
title3 "BIG OPENING OF &ddat";
*title3 "BIG OPENING OF %sysfunc(put(&ddat,worddate.))";
proc print data=sashelp.class(obs=1);run;
--
André WIELKI
INED (Institut National d'Etudes Démographiques)
Service Informatique
133 Boulevard Davout 75980 Paris Cedex 20
mél : wielki@ined.fr tél : 33 (0) 1 56 06 21 54
|