Date: Thu, 17 Jan 2008 08:02:24 -0600
Reply-To: "data _null_," <datanull@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "data _null_," <datanull@GMAIL.COM>
Subject: Re: help using library catalog
In-Reply-To: <403593359CA56C4CAE1F8F4F00DCFE7D0C1E476F@MAILBE2.westat.com>
Content-Type: text/plain; charset=ISO-8859-1
It may not be documented but it works. A hold over from the IBM days, perhaps.
321 proc format ddname=work;
322 value $ORPROC '1'='ORPROC';
NOTE: Format $ORPROC has been output.
323 run;
I think Trish is using winders as implied by the drive letter colon backslash.
LIBNAME LIBRARY "Z:\PSI\";
On Jan 17, 2008 7:27 AM, Ed Heaton <EdHeaton@westat.com> wrote:
> Trish,
>
> What version of SAS are you running - and what is your operating system?
> I'm running SAS 9.1.3 on Windows and can't seem to find the DDNAME=
> option for the PROC FORMAT statement.
>
> Ed
>
> Edward Heaton, Senior Systems Analyst,
> Westat (An Employee-Owned Research Corporation),
> 1650 Research Boulevard, TB-286, Rockville, MD 20850-3195
> Voice: (301) 610-4818 Fax: (301) 294-2085
> mailto:EdHeaton@Westat.com http://www.Westat.com
>
>
>
>
>
> -----Original Message-----
> From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu]
> On Behalf Of Trish Bous
> Sent: Wednesday, January 16, 2008 6:44 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: help using library catalog
>
>
> Hi All,
>
> I was hoping that someone can provide some insight regarding SAS
> catalogs/libraries.
>
>
> I have created a format library in SAS.
>
> snippet of code:
>
> PROC FORMAT DDNAME=LIBRARY;
> VALUE SEXCAT
> 1 = 'Male'
> 2 = 'Female'
> ;
> VALUE AGECAT
> 0 = '00 to 17'
> 1 = '18 to 39'
> 2 = '40 to 64'
> 3 = '65 to 74'
> 4 = '75+'
> ;
> VALUE $TRAUMID
> "80000" = "1" /* CLOSED SKULL VAULT FX */
> "80001" = "1" /* CL SKULL VLT FX W/O COMA */
> OTHER = "0";
> run;
>
> And this has successfully been ran
> ...
> NOTE: Format $TRAUMID has been written to LIBRARY.FORMATS.
> ...
>
> My library, "Library" is located here: "Z\PSI\"
>
> I am trying to use this library in another program with the statement
>
> LIBNAME LIBRARY "Z:\PSI\";
>
> However, I get an error
>
> "ERROR 48-59: The format ORPROC was not found or could not be loaded."
>
> Am I missing something?
>
> Thanks in advance for any help!
>
> Trish
>
|