Note though that when a user-defined informat or format is called by a DATA or PROC step, SAS first looks in a temporary catalog named work.formats. Where libref is technically a name of your choosing. You tell SAS the library (which again you can think of as a directory or location) by using a LIBNAME statement: LIBNAME libref 'c:\directory\where\formats\stored' Basically, the LIBRARY= option tells SAS where the formats catalog is (to be) stored. If you plan to use a customized informat or format repeatedly, you can store it permanently in a " formats catalog" by using the LIBRARY= option in the PROC FORMAT statement. If you wanted to use the informats or formats again in a different SAS program, you would have to create them again using another FORMAT procedure. That is, the informats and formats are valid only for the duration of the SAS session in which they are defined. All of the customized informat and format definitions in this lesson thus far have been stored only temporarily.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |