pspp-output(1)

πŸ“¦
version 2.1.3 Β· 3 versions
, in debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– pspp-output β€” the PSPP manual, bestie edition πŸ’–

okay so this is pspp-output(1) from the PSPP Manual, and I'm literally about to make SPSS viewer files make sense to you. buckle up πŸŽ€


✨ NAME ✨

pspp-output β€” convert and operate on SPSS viewer (SPV) files


🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

pspp-output is a command-line utility that rolls with PSPP, and it does so many things to SPSS viewer files, or .spv files, which we're gonna call SPV files from here on. no cap. SPSS 16 and later writes SPV files to represent what's in its output editor. that's the whole vibe.

SPSS 15 and earlier instead used .spo files. pspp-output does NOT support that format. sorry bestie, not happening πŸ’€

pspp-output has a bunch of subcommands, and they each get their own little section below. it also has several undocumented command forms that developers may find useful for debugging. iykyk πŸ™ˆ


🧚 The detect command

when you invoke it as pspp-output detect file, pspp-output reads enough of file to figure out whether it's an SPV file. if it is, it exits successfully and says absolutely nothing. silent queen behavior. but when file is not an SPV file, or if some other error happens, pspp-output prints an error message and exits with a failure indication. 😭


πŸ‘‘ The dir command

when you invoke it as pspp-output dir file, pspp-output prints a table of contents for the SPV file file on stdout. by default, this table lists every object in the file, except for hidden objects. see the Input Selection Options section below for how to pick a subset of objects. πŸ’…

the following extra option for dir is intended mainly for use by PSPP developers:

  • --member-names β€” also show the names of the Zip members associated with each object.

πŸ”₯ The convert command

when you invoke it as pspp-output convert source destination, pspp-output reads the SPV file source and converts it to another format, writing the output to destination. iconic.

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. (yes, really, it depends on how it was built 🫢)

see the Input Selection Options section below for how to select a subset of objects to include in the output. the following additional options are accepted:

  • -O format=format β€” overrides the format inferred from the output file's extension. format must be one of the extensions listed above.
  • -O option=value β€” sets an option for the output file format. refer to the PSPP manual for details of the available output options.
  • -F, --force β€” by default, if the source is corrupt or otherwise cannot be processed, the destination is not written. these option make pspp-output write the output as best it can, even with errors. (yes it says "these option", we're keeping it, it's part of the charm 😌)
  • --table-look=file β€” reads a table style from file and applies it to all of the output tables. the file should a TableLook .stt or .tlo file.
  • --use-page-setup β€” by default, the convert command uses the default page setup (for example, page size and margins) for destination, or the one specified with -O options, if any. specify this option to ignore these sources of page setup in favor of the one embedded in the SPV, if any.

🌈 The get-table-look command

when you invoke it 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. slay ✨

use - for source to instead write the default look to destination.

you can then use that TableLook file to change the style of tables in other files, by passing it to the --table-look option on the convert command. cute, right? πŸ’–


πŸ“ The convert-table-look command

when you invoke it as pspp-output convert-table-look source destination, pspp-output reads a .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. glow-up arc fr fr 🌸


πŸŽ€ Input Selection Options

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. you 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:

  • --select=[^]class... β€” include only objects of the given class; with a leading ^, include only objects not in the class. use commas to separate multiple classes. the supported classes are:
charts headings logs models tables texts trees warnings
outlineheaders pagetitle notes unknown other

use --select=help to print this list of classes.

  • --commands=[^]command...
  • --subtypes=[^]subtype...
  • --labels=[^]label... β€” include only objects with the specified command, subtype, or label. with a leading ^, include only the objects that do not match. multiple values may be specified separated by commas. an asterisk at the end of a value acts as a wildcard.

the --command option matches command identifiers, case insensitively. all of the objects produced by a single command use the same, unique command identifier. command identifiers are always in English regardless of the language used for output. they often differ from the command name in PSPP syntax. use the pspp-output program's dir command to print command identifiers in particular output.

the --subtypes option matches particular tables within a command, case insensitively. subtypes are not necessarily unique: two commands that produce similar output tables may use the same subtype. subtypes are always in English and dir will print them.

the --labels option matches the labels in table output (that is, the table titles). labels are affected by the output language, variable names and labels, split file settings, and other factors.

  • --nth-commands=n... β€” include only objects from the nth command that matches --commands (or the nth command overall if --commands is not specified), where n is 1 for the first command, 2 for the second, and so on.
  • --instances=instance... β€” include the specified instance of an object that matches the other criteria within a single command. the instance may be a number (1 for the first instance, 2 for the second, and so on) or last for the last instance.
  • --show-hidden β€” include hidden output objects in the output. by default, they are excluded.
  • --or β€” separates two sets of selection options. objects selected by either set of options are included in the output.

the following additional input selection options are intended mainly for use by PSPP developers:

  • --errors β€” include only objects that cause an error when read. with the convert command, this is most useful in conjunction with the --force option.
  • --members=member... β€” include only the objects that include a listed Zip file member. more than one name may be included, comma-separated. the members in an SPV file may be listed with the dir command by adding the --show-members option or with the zipinfo program included with many operating systems. error messages that pspp-output prints when it reads SPV files also often include member names.
  • --member-names β€” displays the name of the Zip member or members associated with each object just above the object itself.

πŸ’œ OPTIONS πŸ’œ

  • -h, --help β€” prints a usage message on stdout and exits.
  • -v, --version β€” prints version information on stdout and exits.

⭐ AUTHORS ⭐

Ben Pfaff.


🌟 SEE ALSO 🌟

pspp-convert(1), pspp(1), psppire(1).


and that's the whole page, bestie!! this one came from PSPP, dated December 2019, and it was literally pspp-output(1) all along. go read your SPV files. periodt πŸ’…πŸ«Ά