Date: Thu, 17 Jan 2008 08:42:54 -0800
Reply-To: Jack Hamilton <jfh@STANFORDALUMNI.ORG>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jack Hamilton <jfh@STANFORDALUMNI.ORG>
Subject: Re: help using library catalog
Content-Type: text/plain; charset="ISO-8859-1"
On Thu, 17 Jan 2008 08:27:23 -0500, "Ed Heaton" <EdHeaton@WESTAT.COM>
> 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.
Procedure options are inconsistent and inconsistently documented. It
seems that many options aren't documented, but work.
If I run PROC FORMAT with an invalid options: i get the following
7233 proc format ddx=work;
ERROR 22-322: Syntax error, expecting one of the following: ;, ALLDUPS,
CNTLIN, CNTLOUT, DDNAME,
FMTLIB, INDD, LIB, LIBRARY, MAXLABLEN, MAXSELEN,
NOREPLACE, NOTEXT82, OUT, OUTDD,
ERROR 76-322: Syntax error, statement will be ignored.
LIB, LIBRARY, and DDNAME appear to be synonyms (and if I had a version 5
or older manual sitting around, I could probably confirm this). But
what does ALLDUPS do? Google finds nothing. OUT appears to be a
synonym for CNTLOUT.
PROC DATASETS also accepts a libname argument, and its documentation
specifically lists DDNAME as an alias for LIBRARY. Why doesn't the
documentation for PROC FORMAT do the same? It was probably written by
different people at a different time.
> 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: firstname.lastname@example.org [mailto:email@example.com]
> 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
> 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";
> 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!