Pasting Syntax from the IBM SPSS Statistics Client Application

When you need to create a new command syntax file that is unlike any syntax file you currently have, use IBM® SPSS® Statistics client application to generate the syntax. This is the easiest way to build a command syntax file.

To paste syntax that will run in the Batch Facility without modifications:

  1. Launch the IBM SPSS Statistics client application.
  2. Connect to the IBM SPSS Statistics Server. This ensures that your view of the data sources is from the perspective of the server computer where the Batch Facility will run.
  3. Select the data source from the File menu. For example, you can open IBM SPSS Statistics data files or create a query to a database.
  4. On the dialog that opens for the data source, make selections and click Paste.
  5. Run the syntax to open the data source. This gives you access to the names of the variables in the data.
  6. Open the dialog box for the appropriate procedure.
  7. Make selections in the dialog box.
  8. Click Paste to paste the syntax that corresponds to your selections.
  9. Repeat until you have pasted the syntax for all of the procedures that you require.
  10. Run the syntax and check that it produces the results that you want.
  11. Save the syntax file.

You can edit the contents of the syntax window if necessary. For complete documentation of the command language, refer to the Command Syntax Reference. For information about using the IBM SPSS Statistics client application, consult the Core System User's Guide.

Figure 1. A dialog box with a paste button
A dialog box with a paste button