pspp-output(1) | PSPP Manual | pspp-output(1) |
pspp-output - convert and operate on SPSS viewer (SPV) files
pspp-output detect file
pspp-output [options] dir file
pspp-output [options] convert source destination
pspp-output [options] get-table-look source
destination
pspp-output [options] convert-table-look source
destination
pspp-output --help | -h
pspp-output --version | -v
pspp-output is a command-line utility accompanying PSPP. It supports multiple operations on SPSS viewer or .spv files, here called SPV files. SPSS 16 and later writes SPV files to represent the contents of its output editor.
SPSS 15 and earlier versions instead use .spo files. pspp-output does not support this format.
pspp-output has a number of subcommands, documented separately below. pspp-output also has several undocumented command forms that developers may find useful for debugging.
When invoked as pspp-output detect file, pspp-output reads enough of file to determine whether it is an SPV file. If so, it exits successfully without outputting anything. When file is not an SPV file or if some other error occurs, pspp-output prints an error message and exits with a failure indication.
When invoked as pspp-output dir file, pspp-output prints on stdout a table of contents for SPV file file. By default, this table lists every object in the file, except for hidden objects. See the Input Selection Options section below for information on the options available to select a subset of objects.
The following additional option for dir is intended mainly for use by PSPP developers:
When invoked as pspp-output convert source destination, pspp-output reads the SPV file source and converts it to another format, writing the output to destination.
By default, pspp-output infers the intended format for destination from its extension. The known extensions are generally: csv html list odt pdf ps spv svg txt. Use --help to see an accurate list, since a given installation might be built without support for some formats.
See the Input Selection Options section below for information on the options available to select a subset of objects to include in the output. The following additional options are accepted:
When invoked as pspp-output get-table-look source destination, pspp-output reads SPV file source, applies any selection options (as described under Input Selection Options below), picks the first table from the selected object, extracts the TableLook from that table, and writes it to destination (typically with an .stt extension) in the TableLook XML format.
Use - for source to instead write the default look to destination.
The user may use the TableLook file to change the style of tables in other files, by passing it to the --table-look option on the convert command.
When invoked as pspp-output convert-table-look source destination, pspp-output reads .stt or .tlo file source, and writes it back to destination (typically with an .stt extension) in the TableLook XML format. This is useful for converting a TableLook .tlo file from SPSS 15 or earlier into the newer .stt format.
The dir and convert commands, by default, operate on all of the objects in the source SPV file, except for objects that are not visible in the output viewer window. The user may specify these options to select a subset of the input objects. When multiple options are used, only objects that satisfy all of them are selected:
The following additional input selection options are intended mainly for use by PSPP developers:
Ben Pfaff.
December 2019 | PSPP |