4 Commands that don't fit any other category are placed here.
6 Most of these commands are not affected by commands like @cmd{IF} and
8 they take effect only once, unconditionally, at the time that they are
9 encountered in the input.
12 * ADD DOCUMENT:: Add documentary text to the active file.
13 * CD:: Change the current directory.
14 * COMMENT:: Document your syntax file.
15 * DOCUMENT:: Document the active file.
16 * DISPLAY DOCUMENTS:: Display active file documents.
17 * DISPLAY FILE LABEL:: Display the active file label.
18 * DROP DOCUMENTS:: Remove documents from the active file.
19 * ECHO:: Write a string to the output stream.
20 * ERASE:: Erase a file.
21 * EXECUTE:: Execute pending transformations.
22 * FILE LABEL:: Set the active file's label.
23 * FINISH:: Terminate the PSPP session.
24 * HOST:: Temporarily return to the operating system.
25 * INCLUDE:: Include a file within the current one.
26 * PERMISSIONS:: Change permissions on a file.
27 * SET:: Adjust PSPP runtime parameters.
28 * SHOW:: Display runtime parameters.
29 * SUBTITLE:: Provide a document subtitle.
30 * TITLE:: Provide a document title.
34 @comment node-name, next, previous, up
40 'line one' 'line two' @dots{} 'last line' .
44 @cmd{ADD DOCUMENT} adds one or more lines of descriptive commentary to
45 the active file. Documents added in this way are saved to system files.
46 They can be viewed using @cmd{SYSFILE INFO} or @cmd{DISPLAY
47 DOCUMENTS}. They can be removed from the active file with @cmd{DROP
50 Each line of documentary text must be enclosed in quotation marks, and
51 may not be more than 80 bytes long. @xref{DOCUMENT}.
57 @cindex changing directory
63 @cmd{CD} changes the current directory. The new directory will become that specified by the command.
71 Two possibles syntaxes:
72 COMMENT comment text @dots{} .
73 *comment text @dots{} .
76 @cmd{COMMENT} is ignored. It is used to provide information to
77 the author and other readers of the PSPP syntax file.
79 @cmd{COMMENT} can extend over any number of lines. Don't forget to
80 terminate it with a dot or a blank line.
89 DOCUMENT @var{documentary_text}.
92 @cmd{DOCUMENT} adds one or more lines of descriptive commentary to the
93 active file. Documents added in this way are saved to system files.
94 They can be viewed using @cmd{SYSFILE INFO} or @cmd{DISPLAY
95 DOCUMENTS}. They can be removed from the active file with @cmd{DROP
98 Specify the @var{documentary text} following the DOCUMENT keyword.
99 It is interpreted literally --- any quotes or other punctuation marks
100 will be included in the file.
101 You can extend the documentary text over as many lines as necessary.
102 Lines are truncated at 80 bytes. Don't forget to terminate
103 the command with a dot or a blank line. @xref{ADD DOCUMENT}.
105 @node DISPLAY DOCUMENTS
106 @section DISPLAY DOCUMENTS
107 @vindex DISPLAY DOCUMENTS
113 @cmd{DISPLAY DOCUMENTS} displays the documents in the active file. Each
114 document is preceded by a line giving the time and date that it was
115 added. @xref{DOCUMENT}.
117 @node DISPLAY FILE LABEL
118 @section DISPLAY FILE LABEL
119 @vindex DISPLAY FILE LABEL
125 @cmd{DISPLAY FILE LABEL} displays the file label contained in the
127 if any. @xref{FILE LABEL}.
129 This command is a PSPP extension.
132 @section DROP DOCUMENTS
133 @vindex DROP DOCUMENTS
139 @cmd{DROP DOCUMENTS} removes all documents from the active file.
140 New documents can be added with @cmd{DOCUMENT} (@pxref{DOCUMENT}).
142 @cmd{DROP DOCUMENTS} changes only the active file. It does not modify any
143 system files stored on disk.
150 ECHO 'arbitrary text' .
153 Use @cmd{ECHO} to write arbitrary text to the output stream. The text should be enclosed in quotation marks following the normal rules for string tokens (@pxref{Tokens}).
156 @comment node-name, next, previous, up
161 ERASE FILE file_name.
164 @cmd{ERASE FILE} deletes a file from the local filesystem.
165 file_name must be quoted.
166 This command cannot be used if the SAFER setting is active.
177 @cmd{EXECUTE} causes the active file to be read and all pending
178 transformations to be executed.
185 FILE LABEL file_label.
188 @cmd{FILE LABEL} provides a title for the active file. This
189 title will be saved into system files and portable files that are
190 created during this PSPP run.
192 file_label need not be quoted. If quotes are
193 included, they become part of the file label.
203 @cmd{FINISH} terminates the current PSPP session and returns
204 control to the operating system.
207 @comment node-name, next, previous, up
215 @cmd{HOST} suspends the current PSPP session and temporarily returns control
216 to the operating system.
217 This command cannot be used if the SAFER setting is active.
226 Two possible syntaxes:
231 @cmd{INCLUDE} causes the PSPP command processor to read an
232 additional command file as if it were included bodily in the current
235 Include files may be nested to any depth, up to the limit of available
239 @comment node-name, next, previous, up
244 @cindex changing file permissions
249 /PERMISSIONS = @{READONLY,WRITEABLE@}.
252 @cmd{PERMISSIONS} changes the permissions of a file.
253 There is one mandatory subcommand which specifies the permissions to
254 which the file should be changed.
255 If you set a file's permission to READONLY, then the file will become
256 unwritable either by you or anyone else on the system.
257 If you set the permission to WRITEABLE, then the file will become
258 writeable by you; the permissions afforded to others will be
260 This command cannot be used if the SAFER setting is active.
271 /BLANKS=@{SYSMIS,'.',number@}
272 /DECIMAL=@{DOT,COMMA@}
274 /EPOCH=@{AUTOMATIC,year@}
275 /RIB=@{NATIVE,MSBFIRST,LSBFIRST,VAX@}
276 /RRB=@{NATIVE,ISL,ISB,IDL,IDB,VF,VD,VG,ZS,ZL@}
283 /CPROMPT='cprompt_string'
284 /DPROMPT='dprompt_string'
285 /ERRORBREAK=@{OFF,ON@}
287 /MXWARNS=max_warnings
292 /MITERATE=max_iterations
296 /SEED=@{RANDOM,seed_value@}
297 /UNDEFINED=@{WARN,NOWARN@}
300 /CC@{A,B,C,D,E@}=@{'npre,pre,suf,nsuf','npre.pre.suf.nsuf'@}
301 /DECIMAL=@{DOT,COMMA@}
303 /WIB=@{NATIVE,MSBFIRST,LSBFIRST,VAX@}
304 /WRB=@{NATIVE,ISL,ISB,IDL,IDB,VF,VD,VG,ZS,ZL@}
308 /ERRORS=@{ON,OFF,TERMINAL,LISTING,BOTH,NONE@}
310 /MESSAGES=@{ON,OFF,TERMINAL,LISTING,BOTH,NONE@}
311 /PRINTBACK=@{ON,OFF@}
312 /RESULTS=@{ON,OFF,TERMINAL,LISTING,BOTH,NONE@}
314 (output driver options)
315 /HEADERS=@{NO,YES,BLANK@}
316 /LENGTH=@{NONE,length_in_lines@}
317 /LISTING=@{ON,OFF,'file-name'@}
319 /WIDTH=@{NARROW,WIDTH,n_characters@}
322 /JOURNAL=@{ON,OFF@} ['file-name']
325 /COMPRESSION=@{ON,OFF@}
326 /SCOMPRESSION=@{ON,OFF@}
331 (obsolete settings accepted for compatibility, but ignored)
332 /BOXSTRING=@{'xxx','xxxxxxxxxxx'@}
333 /CASE=@{UPPER,UPLOW@}
338 /LOWRES=@{AUTO,ON,OFF@}
340 /MENUS=@{STANDARD,EXTENDED@}
343 /TB1=@{'xxx','xxxxxxxxxxx'@}
345 /WORKSPACE=workspace_size
349 @cmd{SET} allows the user to adjust several parameters relating to
350 PSPP's execution. Since there are many subcommands to this command, its
351 subcommands will be examined in groups.
353 On subcommands that take boolean values, ON and YES are synonym, and
354 as are OFF and NO, when used as subcommand values.
356 The data input subcommands affect the way that data is read from data
357 files. The data input subcommands are
361 This is the value assigned to an item data item that is empty or
362 contains only white space. An argument of SYSMIS or '.' will cause the
363 system-missing value to be assigned to null items. This is the
364 default. Any real value may be assigned.
368 The default DOT setting causes the decimal point character to be
369 @samp{.} and the grouping character to be @samp{,}. A setting of COMMA
370 causes the decimal point character to be @samp{,} and the grouping
371 character to be @samp{.}.
374 Allows the default numeric input/output format to be specified. The
375 default is F8.2. @xref{Input and Output Formats}.
379 Specifies the range of years used when a 2-digit year is read from a
380 data file or used in a date construction expression (@pxref{Date
381 Construction}). If a 4-digit year is specified for the epoch, then
382 2-digit years are interpreted starting from that year, known as the
383 epoch. If AUTOMATIC (the default) is specified, then the epoch begins
384 69 years before the current date.
389 PSPP extension to set the byte ordering (endianness) used for reading
390 data in IB or PIB format (@pxref{Binary and Hexadecimal Numeric
391 Formats}). In MSBFIRST ordering, the most-significant byte appears at
392 the left end of a IB or PIB field. In LSBFIRST ordering, the
393 least-significant byte appears at the left end. VAX ordering is like
394 MSBFIRST, except that each pair of bytes is in reverse order. NATIVE,
395 the default, is equivalent to MSBFIRST or LSBFIRST depending on the
396 native format of the machine running PSPP.
401 PSPP extension to set the floating-point format used for reading data in
402 RB format (@pxref{Binary and Hexadecimal Numeric Formats}). The
407 The native format of the machine running PSPP. Equivalent to either IDL
411 32-bit IEEE 754 single-precision floating point, in little-endian byte
415 32-bit IEEE 754 single-precision floating point, in big-endian byte
419 64-bit IEEE 754 double-precision floating point, in little-endian byte
423 64-bit IEEE 754 double-precision floating point, in big-endian byte
427 32-bit VAX F format, in VAX-endian byte order.
430 64-bit VAX D format, in VAX-endian byte order.
433 64-bit VAX G format, in VAX-endian byte order.
436 32-bit IBM Z architecture short format hexadecimal floating point, in
437 big-endian byte order.
440 64-bit IBM Z architecture long format hexadecimal floating point, in
441 big-endian byte order.
443 Z architecture also supports IEEE 754 floating point. The ZS and ZL
444 formats are only for use with very old input files.
446 The default is NATIVE.
449 Program input subcommands affect the way that programs are parsed when
450 they are typed interactively or run from a command file. They are
454 This is a single character indicating the end of a command. The default
455 is @samp{.}. Don't change this.
458 Whether a blank line is interpreted as ending the current command. The
462 Interaction subcommands affect the way that PSPP interacts with an
463 online user. The interaction subcommands are
467 The command continuation prompt. The default is @samp{ > }.
470 Prompt used when expecting data input within @cmd{BEGIN DATA} (@pxref{BEGIN
471 DATA}). The default is @samp{data> }.
474 Whether an error causes PSPP to stop processing the current command
475 file after finishing the current command. The default is OFF.
478 The maximum number of errors before PSPP halts processing of the current
479 command file. The default is 50.
482 The maximum number of warnings + errors before PSPP halts processing the
483 current command file. The default is 100.
486 The command prompt. The default is @samp{PSPP> }.
489 Program execution subcommands control the way that PSPP commands
490 execute. The program execution subcommands are
500 The maximum number of iterations for an uncontrolled loop (@pxref{LOOP}).
503 The initial pseudo-random number seed. Set to a real number or to
504 RANDOM, which will obtain an initial seed from the current time of day.
510 Data output subcommands affect the format of output data. These
519 @anchor{CCx Settings}
521 Set up custom currency formats. @xref{Custom Currency Formats}, for
525 The default DOT setting causes the decimal point character to be
526 @samp{.}. A setting of COMMA causes the decimal point character to be
530 Allows the default numeric input/output format to be specified. The
531 default is F8.2. @xref{Input and Output Formats}.
536 PSPP extension to set the byte ordering (endianness) used for writing
537 data in IB or PIB format (@pxref{Binary and Hexadecimal Numeric
538 Formats}). In MSBFIRST ordering, the most-significant byte appears at
539 the left end of a IB or PIB field. In LSBFIRST ordering, the
540 least-significant byte appears at the left end. VAX ordering is like
541 MSBFIRST, except that each pair of bytes is in reverse order. NATIVE,
542 the default, is equivalent to MSBFIRST or LSBFIRST depending on the
543 native format of the machine running PSPP.
548 PSPP extension to set the floating-point format used for writing data in
549 RB format (@pxref{Binary and Hexadecimal Numeric Formats}). The choices
550 are the same as SET RIB. The default is NATIVE.
553 Output routing subcommands affect where the output of transformations
554 and procedures is sent. These subcommands are
559 If turned on, commands are written to the listing file as they are read
560 from command files. The default is OFF.
570 Output driver option subcommands affect output drivers' settings. These
590 Logging subcommands affect logging of commands executed to external
591 files. These subcommands are
599 System file subcommands affect the default format of system files
600 produced by PSPP. These subcommands are
607 Whether system files created by @cmd{SAVE} or @cmd{XSAVE} are
608 compressed by default. The default is ON.
611 Security subcommands affect the operations that commands are allowed to
612 perform. The security subcommands are
616 Setting this option disables the following operations:
624 The PERMISSIONS command.
626 Pipes (file names beginning or ending with @samp{|}).
629 Be aware that this setting does not guarantee safety (commands can still
630 overwrite files, for instance) but it is an improvement.
631 When set, this setting cannot be reset during the same session, for
632 obvious security reasons.
636 @comment node-name, next, previous, up
665 @cmd{SHOW} can be used to display the current state of PSPP's execution
666 parameters. Parameters that can be changed using @cmd{SET}
667 (@pxref{SET}), can be examined using @cmd{SHOW} using the subcommand
668 with the same name. @code{SHOW} supports the following additional
675 Show all custom currency settings (CCA through CCE).
677 Show details of the lack of warranty for PSPP.
679 Display the terms of PSPP's copyright licence (@pxref{License}).
682 Specifying @cmd{SHOW} without any subcommands is equivalent to SHOW ALL.
689 SUBTITLE 'subtitle_string'.
691 SUBTITLE subtitle_string.
694 @cmd{SUBTITLE} provides a subtitle to a particular PSPP
695 run. This subtitle appears at the top of each output page below the
696 title, if headers are enabled on the output device.
698 Specify a subtitle as a string in quotes. The alternate syntax that did
699 not require quotes is now obsolete. If it is used then the subtitle is
700 converted to all uppercase.
707 TITLE 'title_string'.
712 @cmd{TITLE} provides a title to a particular PSPP run.
713 This title appears at the top of each output page, if headers are enabled
714 on the output device.
716 Specify a title as a string in quotes. The alternate syntax that did
717 not require quotes is now obsolete. If it is used then the title is
718 converted to all uppercase.