1 SPS The following SPSS11 commands are available: APPEND CHECK COPY DATA DELETE EXIT FIND INCLUDE INSERT MOVE REPLACE RESEQUENCE SUBSTITUTE TYPE WRITE XEQ Type AID SPS 'command' for more information about any command2 AID AID [command]--The AID command prints helpful information. The argument "command" tells which command you want more information about. If the argument is omitted, it prints a list of the legal commands. 2 APPEND APPEND [n]/FI:filespec--locates an SPSS raw data file and copies it into the workspace. "n" specifies the line ahead of which the contents of the file are to be APPENDed. If the argument "n" is missing, the data is APPENDed ahead of the current line. If there is no line numbered "n", an error message is printed. "filespec" is any legal file specification. After a raw data file has been APPENDed into the workspace, the line pointer is positioned at the last line of the newly APPENDed text. 2 CHECK CHECK Check the entire contents of the scratch area for legal SPSS commands in correct order. 2 COPY COPY range TO nn--copies lines from one location to another, while keeping them in their original location. "range" is one of the legal range specifiers, telling which lines are to be copied. If more than one line is specified, all the specified lines are copied. "nn" is the number of the line before which the set of lines is to be copied. After a line or group of lines has been copied, the line pointer is positioned at the first line of the copied lines in their new position preceding the line numbered "nn". 2 DATA DATA [n]--inserts SPSS raw data before the line numbered "n". If the argument "n" is missing, the raw data is inserted ahead of the current line. If "n" is larger than the last line number, the text is inserted at the end of the workspace. If there is no line numbered "n", an error message is printed. After a line or group of data lines has been inserted into the workspace, the line pointer is positioned at the last inserted line. When you issue an DATA command, SPSS11 prompts you for the lines of data to be inserted by printing a "?". When all the lines have been entered from the terminal, terminate DATA mode by typing the character. The "Command?" prompt will then be printed. 2 DELETE DELETE [range]--deletes lines from the workspace. "range" is one of the legal range specifiers. If you do not specify a range, the current line is deleted. After a line or a group of lines has been deleted, the line pointer is positioned at the line immediately following the last line deleted. If you enter non-existent line numbers in a range specification, SPSS11 prints an error message. 2 EXIT EXIT Terminates the SPSS11 program. If you have not saved the contents of the workspace with a WRITE command, it will be lost upon executing the EXIT command. 2 FIND FIND string--The FIND command looks for the first occurrence of the specified string. The search begins at the current line. If the string is found, the line pointer is positioned at the line which contains the string. If the string is not found, an error message is printed, and the position of the line pointer is unchanged. 2 INCLUDE INCLUDE [nn]/FI:filespec--locates an SPSS command file and copies it into the workspace. "nn" specifies the line ahead of which the contents of the file are to be inserted. If you do not specify a line number, the contents of the file are INCLUDEd ahead of the current line. "filespec" is any legal file specification. After a file has been INCLUDEd into the workspace, the line pointer is positioned at the last line of the newly INCLUDEd text. 2 INSERT INSERT [n]--inserts text before the line numbered "n". If the argument "n" is missing, the text is INSERTed ahead of the current line. If "n" is larger than the last line number, the text is INSERTed at the end of the workspace. If there is no line numbered "n", an error message is printed. After a line or group of lines has been INSERTed into the workspace, the line pointer is positioned at the last INSERTed line. When you issue an INSERT command, SPSS11 prompts you for the lines of text to be INSERTed by printing a "?". When all the lines have been entered from the terminal, terminate INSERT mode by typing the character. The "Command?" prompt will then be printed. 2 MOVE MOVE range TO nn--transfers lines from one location to another and deletes them from their original location. "range" is one of the legal range specifiers, and specifies the lines which are to be moved. "nn" is the number of the line ahead of which to move the lines in the range. After a line or group of lines has been moved, the line pointer is positioned at the first line of the transferred lines in their new position preceding the line numbered "nn". 2 QUIT QUIT Terminates the SPSS11 program. If you have not saved the contents of the workspace with a WRITE command, it will be lost upon executing the QUIT command. 2 REPLACE REPLACE [range]--deletes the lines in the specified range and inserts one or more lines of text in their place. "range" specifies the lines that are to be REPLACEd and is one of the legal range specifiers. After a line or group of lines has been REPLACEd, the line pointer is positioned at the last replacement line. If you do not specify a range, the REPLACE command deletes the current line and inserts the replacement lines in its place. 2 RESEQUENCE RESEQUENCE--assign new line numbers to the lines in the workspace. The entire workspace is renumbered. The first line is assigned the number 10, and subsequent lines are numbered in increments of 10. The largest line number which can be used is 32767. After the workspace has been resequenced, the line pointer is positioned at the first line in the buffer. 2 SUBSTITUTE SUBSTITUTE /string1/string2/--changes characters within lines of the workspace. "string1" specifies the characters in the workspace that you want to locate and to change. "string2" specifies the replacement characters. Only the first occurrence of the string is changed to the replacement string. The search for "string1" begins with the current line. After a string substitution has been made, the line pointer is positioned at the line in which the substitution was made. You can replace the slash (/) string delimiter with any character which does not appear in either of the two strings. If the first string "string1" is not found, an error message is printed. 2 TYPE TYPE [range][/BR]--displays a range of lines of text at your terminal. "range" is one of the legal range specifiers. If you omit a range specifier, the current line is displayed. /BR specifies that only the first 16 characters of each line be displayed. You can also use /BR:nn to display the first "nn" characters of each line. After the lines are displayed, the line pointer is positioned at the first line of the range. 2 WRITE WRITE [range] /FI:filespec--Save the SPSS commands and/or data currently in the workspace in the file specified. If a file with the name specified already exists, it will be replaced, with no warning. The position of the line pointer is not changed by the WRITE command. 2 XEQ XEQ If the workspace contains SPSS commands, this command will cause them to be processed. If the workspace is empty, the program will prompt you with "Input from?". Respond with the name of an SPSS command file (or CR: or KB: if your commands are on cards or you wish to type them in on your terminal). In either case, it will then ask you where you want your output to go ("Output to?"). Respond with the name of the file to which you want your output to go (or LP: or KB: if line printer or terminal).