APPLY DICTIONARY

APPLY DICTIONARY can apply variable and file-based dictionary information from an external IBM® SPSS® Statistics data file or open dataset to the current active dataset. Variable-based dictionary information in the current active dataset can be applied to other variables in the current active dataset.

APPLY DICTIONARY FROM [{'savfile'|'dataset'}] [PASSWORD='password']
                       {*                  }  

 [/SOURCE VARIABLES = varlist]

 [/TARGET VARIABLES = varlist]

 [/NEWVARS]

 [/FILEINFO [ATTRIBUTES = [{REPLACE}]]
                           {MERGE  } 

            [DOCUMENTS = [{REPLACE}]]  ]
                          {MERGE  }

            [FILELABEL]
            [MRSETS = [{REPLACE}]]
                       {MERGE  }  

            [VARSETS = [{REPLACE}]] 
                        {MERGE  }

            [WEIGHT**] 

            [ALL]

	[/VARINFO [ALIGNMENT**]  ]


           [ATTRIBUTES = [{REPLACE}]]
                          {MERGE  } 
           [FORMATS**] 

           [LEVEL**] 

           [MISSING**]

           [ROLE**]

           [VALLABELS = [{REPLACE**}]] 
                         {MERGE   }

           [VARLABEL**] 

           [WIDTH**] 

           [ALL]

**Default if the subcommand is not specified.

This command takes effect immediately. It does not read the active dataset or execute pending transformations. See the topic Command Order for more information.

Syntax for the APPLY DICTIONARY command can be generated from the Copy Data Properties Wizard.

Release History

Release 14.0

  • ATTRIBUTES keyword introduced on FILEINFO and VARINFO subcommands.

Release 18

  • ROLE keyword introduced on VARINFO subcommands.

Release 22.0

  • PASSWORD keyword introduced on the FROM subcommand.

Example

APPLY DICTIONARY FROM = 'lastmonth.sav'.