FILEINFO Subcommand (CODEBOOK command)

The optional FILEINFO subcommand allows you to control the file information included in the results.

  • By default, no file information is included.
  • If you include the FILEINFO subcommand, it should be followed by one or more of the available keywords that indicate the file information to include.

The available options are:

NAME. Name of the IBM® SPSS® Statistics data file. If the dataset has never been saved in IBM SPSS Statistics format, then there is no data file name.

LOCATION. Directory (folder) location of the IBM SPSS Statistics data file. If the dataset has never been saved in IBM SPSS Statistics format, then there is no location.

CASECOUNT. Number of cases in the active dataset. This is the total number of cases, including any cases that may be excluded from summary statistics due to filter conditions.

LABEL. File label. See the topic FILE LABEL for more information.

ATTRIBUTES. User-defined custom data file attributes. See the topic DATAFILE ATTRIBUTE for more information.

DOCUMENTS. Data file document text. Document text created with the DOCUMENT or ADD DOCUMENT commands. See the topic ADD DOCUMENT for more information.

WEIGHT. Weight status If weighting is on, the name of the weight variable is displayed.

RESERVEDATTRIBUTES. Reserved system data file attributes. You can display system attributes, but you should not alter them. System attribute names start with a dollar sign ($) . Non-display attributes, with names that begin with either "@" or "$@", are not included. Output includes both the names and values for any system data file attributes.

Example

CODEBOOK
  /FILEINFO NAME LOCATION CASECOUNT.
  • The file information table will only include the name and location of the IBM SPSS Statistics data file and the total number of cases in the file.
  • The output will also include a table of variable information and summary statistics for each variable and multiple response set, because all variable information is included by default.