Date: Wed, 23 Feb 2011 11:39:50 -0500
Reply-To: Suzanne McCoy <Suzanne.McCoy@CATALINAMARKETING.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Suzanne McCoy <Suzanne.McCoy@CATALINAMARKETING.COM>
Subject: Re: NOFMTERR no longer needed when formats are unavailable?
Content-Type: text/plain; charset="us-ascii"
Did you look at the master format library to make sure the same format name doesn't already exist there?
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Mike Rhoads
Sent: Wednesday, February 23, 2011 11:34 AM
Subject: NOFMTERR no longer needed when formats are unavailable?
For many years now, I have been under the impression that the NOFMTERR system option was the only practical way to deal with situations where a SAS data set had user-created formats associated with some or all variables, and the corresponding format catalog was not available.
However, one of my Westat colleagues recently brought the following to my attention:
JOB 1 (create a data set and associate a user-written format with a variable)
libname library 'c:\junk\';
proc format library=library;
'M' = 'Male'
'F' = 'Female'
format sex $sexf.;
1 libname junk 'c:\junk\';
NOTE: Libref JUNK was successfully assigned as follows:
Physical Name: c:\junk
3 %PUT Value of FMTERR option is %sysfunc(getoption(fmterr));
Value of FMTERR option is FMTERR
4 data tempclass;
5 set junk.class;
6 format _ALL_;
NOTE: There were 19 observations read from the data set JUNK.CLASS.
NOTE: The data set WORK.TEMPCLASS has 19 observations and 5 variables.
As the saying might go, "Look, Ma, no errors or warnings!" format sex; also works.
Did this always work, meaning that I am losing brain cells much more rapidly than I had feared? Or is this a relatively new development? (This was run using SAS 9.1.3 under WinXP.)