SPSS HelpLast modified: Jan 31 2003
SPSSB (9 March 2001 (v10.1.3))
NAME
SPSSB - A batch processing utility that runs SPSS command
syntax files and produces SPSS output.
SYNOPSIS
SPSSB [-f inputfile] [-t text|html] [- hide] [-show] [-nfc]
[-nl] [-drop] [-keep] [-pb] [-t] [-n] [-rs] [-cs] [-LC_ALL]
[-language]>
DESCRIPTION
SPSSB is intended for automated production of SPSS reports.
Input is expected to be a text file that contains SPSS com-
mand syntax. If the -f switch and the filename are present,
SPSSB runs in batch mode and processes the commands in the
command syntax file. If the -f switch is absent, SPSSB runs
in interactive mode, prompting the user to enter command
syntax one line at a time. Batch output is usually
redirected to a file named by the user. Interactive output
is displayed on the terminal.
OPTIONS
The following options are supported.
-f inputfile
Name of the command syntax file to be processed in
batch mode. Only one filename is allowed. If the -f
switch is omitted, SPSSB will run in interactive mode.
-type text|html
Type of output, text or html. Note: XML output is pro-
duced but is for internal use only.
-hide item(s)
Do not produce the listed output item(s). Output items
are: L W N E G P T. See the SPSSB User's Guide for
details.
-show item(s)
Produce the listed output items(s). Output items are: L
W N E G P T. See the SPSSB User's Guide for details.
-nfc Do not produce table footnotes and captions in batch
output. Omit to get footnotes and captions.
-nl Do not produce all table layers (produce the top layer
only) in batch output. Omit to get all layers.
-drop name(s)
Do not produce the listed table(s). Use table autos-
cript names. See the SPSSB User's Guide for details.
-keep name(s)
Produce the listed tables. Use table autoscript names.
See the SPSSB User's Guide for details.
-pb Produce page breaks in batch text output. Omit for no
page breaks.
-t Produce tab-separated batch text output. Omit to get
space-separated output.
-n N Restrict column width to N characters in space-
separated batch output. Omit for automatic sizing of
column width.
-rs C
Use character C as the row separator for tables in
space separated batch output. Enclose the character in
quotation marks. Omit to use the default underscore
character.
-cs C
Use character C as the column separator for tables in
space separated batch output. Enclose the character in
quotation marks. Omit to use the default bar character.
-LC_ALL locale
Specifies the locale that SPSSB should use when produc-
ing output. Omit to use the server computer's default
locale.
-language de|en|es|fr|it|ja|ko|pl|zh_tw
Specifies the language that SPSSB should use when pro-
ducing error messages and other output. You can choose
from languages available in the /bin subdirectory of
the SPSS Server installation directory. Omit to use
English. Note: Currently only Windows encoding is
available.
ENVIRONMENT VARIABLES
SPSSB requires environment variables to be defined. A con-
venient way to set the environment variables and execute
SPSSB is to use a script. A script that does that, spssb, is
included in the /bin subdirectory of the SPSS Server instal-
lation directory. If SPSS Server isn't installed in the
default location, the system administrator should edit the
script and define SPSS_HOME.
The required environment variables are:
SPSS_HOME
The installation directory of SPSS Server.
LD_LIBRARY_PATH
On Solaris, the /lib subdirectory in the SPSS Server
installation directory.
LIBPATH
On AIX, the /lib subdirectory in the SPSS Server ins-
tallation directory.
EXAMPLES
All examples are written using the spssb start up script.
The script passes the command line switches to SPSSB.
Batch text output.
Submit a command syntax file to SPSSB to be processed
in batch mode and redirect output to a file:
spssb -f tables.sps >tables.txt
Batch HTML output.
Submit a command syntax file to SPSSB to be processed
in batch mode, specify HTML, and redirect output to a
file:
spssb -f tables.sps -type html >tables.htm
Interactive mode.
To run SPSSB interactively, start it with no command
line parameters:
spssb
Batch tab-separated text output.
Use the -t switch:
spssb -f tables.sps -t >tables.txt
Custom separators for text tables.
For example, to use blank as the row separator and plus
as the column separator for tables in text output:
spssb -f tables.sps -rs " " -cs "+" >tables.txt
Suppress all output items except pivot
Use the -show and -hide switches:
spssb -f tables.sps -show P -hide LWNEGT >tables.txt
Produce only Regression ANOVA tables.
Use the -keep switch:
spssb -f regr.sps -keep Regression_Table_ANOVA
URL
The SPSS Inc. home page is currently at
http://www.spss.com/.
COPYRIGHT
Distributed with permission from SPSS Inc. Please see the
title page of the SPSSB User's Guide for copyright informa-
tion.
|
UA
Homepage CCIT
Homepage