CD

CD changes the working directory location, making it possible to use relative paths for subsequent file specifications in command syntax, including data files specified on commands such as GET and SAVE, command syntax files specified on commands such as INSERT and INCLUDE, and output files specified on commands such as OMS and WRITE.

CD 'directory specification'.

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

Release History

Release 13.0

  • Command introduced.

Example

CD '/main/sales/consumer_division/2004/data'.
GET FILE='julydata.sav'.
INSERT FILE='../commands/monthly_report.sps'.