![]() (#): The original order of the variable in the columns of the dataset.Here, the sample dataset contains 23 variables.Ĭ The date and time that the dataset was created and last modified.ĭ This part of the output lists the dataset’s variables and their attributes. Here, the sample dataset contains 435 observations.ī The number of variables (or columns) in the dataset. Key elements are labeled and described below the screenshot.Ī The number of observations (or rows) in the dataset. The screenshot below shows the output of PROC CONTENTS on the sample data file. You can change this by adding the ORDER=VARNUM option to the PROC CONTENTS statement: PROC CONTENTS DATA=sample ORDER=varnum Note that PROC CONTENTS will list the variables in alphabetical order, rather than the order they appear in the dataset. If you do not specify a dataset, SAS will use the most recently created dataset by default. (For example, you may wish to check that none of your character variables have been truncated, and that your date variables have not been misread.) The basic syntax of PROC CONTENTS is: PROC CONTENTS DATA=sample Īs with all SAS procedures, the DATA command (which specifies the name of the dataset) is optional, but recommended. This procedure is especially useful if you have imported your data from a file and want to check that your variables have been read correctly, and have the appropriate variable type and format. ![]() How many observations are in the dataset.The variables' names, types, and attributes (including formats, informats, and labels).The CONTENTS procedure generates summary information about the contents of a dataset, including: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |