![]() ![]() Notice that nothing is done to the data, just assigning a format.Ī format can be made a default for a variable when it is created, in a data step (in effect recreating it but that's another dicussion) or the utility procedure Proc DATASETS that lets you change (some) properties of datasets and the variables in them in place. *<= this statement associates the format with the variable*/ Run this brief code to see the example of using Proc Format in your session to make a format available and the use in Proc Freq. To use a format with a value there are two basic steps: make the format available to SAS session if it is not one of the SAS supplied formats and then tell the procedure to use the format. Using the SASHELP.CLASS data set, which is usually installed by default you can see the default output for: Proc print data=sashelp.class It sounds to me like you did not associate the format with the variables for use by proc freq. One might suspect that HOW to create the format and associate it with the variable(s) might be an issue. ![]() You will find that if you use the correct options from SPSS to export to SAS one of the files created is Proc Format code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |