• Aucun résultat trouvé

MTS COMMAND LANGUAGE

Dans le document The Michigan Terminal System (Page 21-24)

In order to use the computer, one must first get the attention of MTS and be identified through the SIGNON command. Once this has been done and MTS has declared the signon to be legitimate, the system is at the user’s disposal.

In this section, the commands are listed in their most common form followed by a brief explanation of their function. Not every possible option and parameter is mentioned. A detailed explanation of the commands is given in the section “The System Command Language” in this volume. The synopsis of the complete syntax for the MTS command language is given in theMTS Reference Summary, a pocket-sized guide to MTS.

Global Control

SIGNON userid tells MTS that the user with userID “userid” wants to use the system.

The password associated with the userID must be entered on the following line.

SIGNOFF signs the user off the system and gives a summary of the cost of the run.

SET is used to set various options and variables in the system. These control such functions as setting the user’s password and/or name, mail/message notification, printed output routing, etc.

SINK FDname switches the current output sink to the file or device “FDname”

instead of the printer (in batch mode) or the terminal (in conversational mode).

SOURCE FDname switches the current input source to the file or device “FDname”

instead of the card reader (in batch mode) or the terminal (in conversational mode).

Program Control

RUN FDname loads and executes the program in the file “FDname”. These files can be public, such as *FORTRANVS or *PASCALJB, or private, such as MYPROGR or −LOAD.

RERUN reissues the previous RUN command.

LOAD FDname loads but does not execute the program in the file “FDname”. The program can then be DISPLAYed and/or ALTERed. Execution can be started by the START command.

START starts the execution of a program which has already been loaded by a LOAD command.

RESTART restarts the program at the point of the last interrupt or at a specified location. START and RESTART are synonymous and may be used interchangeably.

UNLOAD releases storage and devices acquired by the previous LOAD or RUN.

It is useful when the execution of a program did not terminate normally.

IF tests program execution return code.

Debugging

DEBUG FDname loads the program in the file “FDname” under the control of the Symbolic Debugging System (SDS). SDS has its own set of commands which allows the user to interactively debug a program.

A listing of the important debug commands is given later.

SDS returns control to SDS from MTS.

DUMP prints out the contents of the general registers, floating-point registers, and all the virtual memory locations associated with the current job.

File Handling

CREATE filename creates a file named “filename”. If it is not a temporary file (that is, if its name does not begin with a minus sign), it is retained until the user destroys it.

DESTROY filename destroys the file named “filename” and returns the space on the disk to the pool of available storage.

EMPTY filename empties the contents of the file “filename”, but retains its space and identity. Thus, the file can be reused.

RENAME filename1 filename2

renames the file “filename1” to “filename2”.

RENUMBER filename renumbers the line numbers in the file “filename”.

TRUNCATE filename deallocates unused space at the end of file “filename”.

COPY FDname1 TO FDname2

copies the contents of the file or device “FDname1” into the file or device “FDname2”. Unless specified otherwise, the lines in

“FDname2” are numbered from 1 with increments of 1 regardless of their numbers in the old file. “FDname1” is retained unaltered.

DUPLICATE oldname AS newname

copies the contents of the file “oldname” exactly into the file

“newname”. The original line numbers are retained.

LIST FDname lists the contents of the file or device “FDname”.

RELEASE releases *PRINT*, *BATCH*, or *PUNCH*, or pseudodevices mounted by the MOUNT command.

EDIT filename enters edit mode. The MTS File Editor has its own set of commands which allow the direct editing of the file “filename”.

PERMIT filename access specifies the access that other users have to the file “filename” to be

“access”.

FILESTATUS gives file status information for the user’s files.

FILEMENU gives file status information in full-screen format.

Miscellaneous

CALC enters into the desk calculator mode of operation.

CONTROL FDname xx performs the file or device control operation “xx” on the file or device

“FDname”.

DISPLAY option displays information about the status of the system or the user’s task.

FSMESSAGE enters into the Full-Screen Message System.

FTP enters the File Transfer Protocol system.

LOCATE gives job status information.

LOG ON FDname begins printing a log (copy) of a terminal session on the file or device

“FDname”.

MAKE program enters the program management facility which builds the contents for the file “program” depending on rules given in a make-file.

MESSAGE enters into the MTS Message System.

MOUNT xx requests the mounting of the magnetic tape, server, or UMnet/Michnet Computer Network connection “xx”.

NET xx enters into the UMnet/Michnet Computer Network system for the connection “xx”.

SYSTEMSTATUS gives status information for a job or the system.

VIEW looks at queued batch and print jobs.

Dans le document The Michigan Terminal System (Page 21-24)