pspp-convert(1)
π NAME π
pspp-convert β bestie, it converts SPSS data files to other formats. That's it, that's the job. π
Oh and heads up, this whole page lives in the PSPP Manual, so likeβ¦ that's the vibe we're working with. πΈ
β¨ SYNOPSIS β¨
pspp-convert [options] input output
pspp-convert --help | -h
pspp-convert --version | -v
π¦ DESCRIPTION π¦
Okay so here's the tea. pspp-convert reads input, and input can be any of these little guys:
- an SPSS system file
- an SPSS/PC+ system file
- an SPSS portable file
- an encrypted SPSS syntax file
β¦and then it writes all of that to output, doing format conversion as necessary. Iconic behavior, no notes. π
The format of input is automatically detected, when possible. But listen β the character encoding of old SPSS system files cannot always be guessed correctly, and SPSS/PC+ system files don't include any indication of their encoding. Rude of them honestly. So in that case, hit it with -e encoding to specify the encoding yourself. π«Ά
π« Default output formats (inferred from the extension)
By default, the intended format for output is inferred from its extension, like so:
csv,txtβ Comma-separated value. Each value is formatted according to its variable's print format. The first line in the file contains variable names. πsav,sysβ SPSS system file. πΎporβ SPSS portable file. π§³spsβ SPSS syntax file. (Only encrypted syntax files may be converted to this format.) π
Use -O extension to override the inferred format, or to specify the format for unrecognized extensions. You're the main character, you decide. β¨
pspp-convert can convert most input formats to most output formats. Encrypted SPSS file formats are the exceptions: if the input file is in an encrypted format, then the output file will be the same format (decrypted). Options for the output format are ignored in this case. Periodt. π
π OPTIONS π
πΈ General Options πΈ
-O format,--output-format=formatβ Specifies the desired output format.formatmust be one of the extensions listed above, e.g.-O csvrequests comma-separated value output. π-c maxcases,--cases=maxcasesβ By default, all cases are copied frominputtooutput. Specifying this option limits the number of cases written tooutputtomaxcases. Like a little case diet. π-e charset,--encoding=charsetβ Overrides the encoding in which character strings ininputare interpreted. This option is necessary because old SPSS system files do not self-identify their encoding. (They're being mysterious. We don't love that.) π-k var...,--keep=var...β Drops all variables except those listed asvar, and reorders the remaining variables into the specified order. Keep only your faves. π-d var...,--drop=var...β Drops eachvarlisted from the output. Bye bestie. π
π§ CSV Output Options π§
These options affect only output to .csv and .txt files.
--labelsβ By default,pspp-convertwrites variables' values to the output. With this option,pspp-convertwrites value labels. π·οΈ--no-var-namesβ By default,pspp-convertwrites the variable names as the first line of output. With this option,pspp-convertomits this line. Poof, gone. β¨--recodeβ By default,pspp-convertwrites user-missing values as their regular values. With this option,pspp-convertrecodes them to system-missing values (which are written as a single space). β£--print-formatsβ By default,pspp-convertwrites numeric variables as plain numbers. This option makespspp-converthonor variables' print formats. π--decimal=decimalβ This option sets the character used as a decimal point in output. The default is a period (.). π΅--delimiter=delimiterβ This option sets the character used to separate fields in output. The default is a comma (,), unless the decimal point is a comma, in which case a semicolon (;) is used. π΄--qualifier=qualifierβ The option sets the character used to quote fields that contain the delimiter. The default is a double quote ("). π
π Password Options π
When the input file is encrypted, pspp-convert needs to obtain a password to decrypt it. To do so, the user may specify the password with -p (or --password), or the name of a file containing a list of possible passwords with --password-list, or an alphabet of possible passwords to try along with a maximum length with -a (or --password-alphabet) and -l (or --password-length). If none of these options is used, pspp-convert prompts for the password. π΅οΈββοΈ
The password options are:
-p password,--password=passwordβ Specifies the password to use to decrypt the input file.
On multiuser systems, this option may not be safe because other users may be able to see the password in process listings. Not the moment for main character energy, bestie. π
-a alphabet -l max-length,--password-alphabet=alphabet,--password-length=max-lengthβ These options are an alternative to-por--password. They directpspp-convertto search for the correct password from the set of all passwords of symbols fromalphabet(which may contain character ranges specified with-) and no more thanmax-lengthsymbols long. For example,-a a-z -l 5checks all possible lowercase alphabetic passwords no more than 5 characters long. Brute force but make it cute. π₯
When these options are used, -p may additionally specify a starting point for the search.
--password-list=fileβ Specifies a file to read containing a list of passwords to try, one per line. Iffileis-, reads fromstdin. ποΈ
β Other Options β
-h,--helpβ Prints a usage message onstdoutand exits. π«Ά-v,--versionβ Prints version information onstdoutand exits. π
π AUTHORS π
Ben Pfaff. (The legend themselves. We stan. π)
π SEE ALSO π
Okay that's the whole page bestie, you're fully caught up. This one's from PSPP, dated October 2013, and it's pspp-convert(1) β go convert something slay. πβ¨π¦π
π¦ where this page comes from
- debian bookworm: pspp 1.6.2-2 Β· GPL-3.0-or-later
- debian trixie: pspp 2.0.1-1+b1 Β· GPL-3.0-or-later
- fedora 43: pspp 2.0.1-6.fc43 Β· GPL-3.0-or-later
- fedora 43: pspp 2.1.1-5.fc43
- fedora 43: pspp 2.1.3-2.fc43 Β· GPL-3.0-or-later
- fedora 44: pspp 2.1.1-1.fc44 Β· GPL-3.0-or-later
- fedora 44: pspp 2.1.1-5.fc44
- fedora 44: pspp 2.1.3-2.fc44 Β· GPL-3.0-or-later
- nixos 26.05: pspp 2.1.1
- nixpkgs unstable: pspp 2.1.1
- ubuntu noble: pspp 2.0.0-3build2 Β· GPL-3.0-or-later
- ubuntu questing: pspp 2.0.1-1build2
- ubuntu resolute: pspp 2.0.1-1build3 Β· GPL-3.0-or-later
- ubuntu stonking: pspp 2.0.1-1build3 Β· GPL-3.0-or-later
- Copyright (C) 2020 Free Software Foundation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms