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 (April 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 19 Apr 1999 16:33:13 -0700
Reply-To:     "William W. Viergever" <wwvierg@IBM.NET>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         "William W. Viergever" <wwvierg@IBM.NET>
Subject:      Re: Unfinished SAS-L Live from Miami Beach business
Comments: To: Ray Pass <raypass@WORLDNET.ATT.NET>
In-Reply-To:  <4.1.19990419172528.00caa2a0@postoffice.worldnet.att.net>
Content-Type: text/plain; charset="us-ascii"

Here's my standard chunk of code for all my batch jobs (the "source" does change however:

data _null_; call symput("fdate",trim(left(put("&sysdate"d,worddate.)))); run; *******************************************************************************; *-- our standard footnotes; footnote1 "Source: DHS' CY 1996 - 1998 Medi-Cal inpatient paid claims tapes"; footnote2 "Prepared by: Viergever & Associates, Sacramento, CA"; footnote3 "[&pgm1..sas, &systime &sysday, &fdate]"; *******************************************************************************;

.......

which generates:

Source: DHS' CY 1996 - 1998 Medi-Cal inpatient paid claims tapes Prepared by: Viergever & Associates, Sacramento, CA [hfpa.0431.cmac.rates.sas, 15:38 Wednesday, April 7, 1999]

HTH

At 05:43 PM 4/19/99 -0400, Ray Pass wrote: >In one of the more lively discussions at the session, the question to be >answered was how to put the automatic variable &sysdate out in a footnote >with a format other than the default date7. Since none of us were syntax >certified, we couldn't quite come up with the correct code at the moment, >although we knew how to do it. I forgot about it for a few days and I just >now remembered to post "an" answer. > >One solution would be to use the today() function instead of the &sysdate >automatic variable, and take advantage of the fact that the %sysfunc >function can have an output format associated with it. It's easy enough: > >footnote "%sysfunc(today(),mmddyy10.)"; > >Of course you can use any output date format you like. I leave it to my >colleague DR to post the non %sysfunc solution (with or without &sysdate) >since he was in such an anti-%sysfunc at the time :-) Go Dave! > >Ray > > >*------------------------------------------------* >| Ray Pass voice: (914) 693-5553 | >| Ray Pass Consulting fax: on request | >| 5 Sinclair Place | >| Hartsdale, NY 10530 e-mail: raypass@att.net | >*------------------------------------------------*

---------------------------------------------------------------------------- William W. Viergever Voice : (916) 483-8398 Viergever & Associates Fax : (916) 486-1488 A SAS Institute Quality Partner (USA) E-mail : wwvierg@ibm.net Sacramento, CA 95825 ----------------------------------------------------------------------------


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