EXECUTE COMMANDS PASSED VIA DMSINS On entry from DMSINA, processes any commands passed via the console
read put on the user's console by that routine; that is processes
any commands the user stacks on the line as the first read that DMSINT processes. In handling the first read, if that read is null,
control passes to the main loop of the program, which is described
in the following section. Get the current time. to the waitread subroutine to read a command line at the
console. DftSSCN ---Waitread then calls to convert the line just read into plist
format. Once converted to plist format, an SVC 202 is issued (at
label INIT1A) to execute the function. This cycle is repeated qntil all stacked commands are executed. ---When command execution completes, calls DeSFNS (at label UPDIT) to
close any files that .ay have remained open during the command processing. DMSVSR that any fields set by VSAM processing are reset for ces. Also ensures that the VSAM discontiguous shared segment is purged. Sets up an appropriate status message (CMS, CftS SUBSET, CMS/DOS, etc.). Writes the status message to the console.
HANDLE COMftANDS ENTERED DURING A CMS TERftINAL SESSION Branches (from label INLOOP2) to the waitread subroutine to read a
line entered at the console. ---aeads a line entered at the console (subroutine waitread). Converts the command line to PLIST format (subroutine waitread). Determines whether the command line is a null line or a comment. DMSLFS the command line is neither a co •• and line nor a co •• eDt, determines whether the command is an EXEC file. Determines whether the command is an abbreviation and, if it is,
returns its full name. CMS Method of Operation and Program Organization 2-63
DMSITS ---Passes the command line to DMSITS via an SVC 202. SVC handler. For a detailed description of the "Method of Operation for DMSITS." DMSCPF ---r1-the command could not be executed by the SVC command to CP to see if CP can execute it. DMSITS is the SVC handler, see
handler, passes the On return from processing the command line (label UPDAT), closes any
files that may have been opened during processing= Resets any flags or fields that may have been set during OS processing. DMSVSR that any fields set for VSAM processing are reset for CMS. Also ensures that the VSAM discontiguous shared segment is purqed@ DMSINT ---When the command line has been successfully executed, builds a CMS ready message for the user (label PRNREADY). DMSCWR ---Writes the ready message to the console. Returns control to DMSINT at label INLOOP2 to continue monitoring the CMS terminal session.
Method of Operation for DMSINT DMSINT, the console manager, maintains the continuity of operation of
the CMS command environment. The main control loop of DMSINT is
initiated by a call to DMSCRD to get the next command. When the command
is entered, DMSINT calls DMSINM to initialize the CPU time for the new
command and then puts it in standard parameter list form by calling the
scan function program DMSSCN. After calling DMSSCN, DMSINT checks to
see if an EXEC filetype exists with a filename of the typed-in command.
(For example, if ABC was typed in, it checks to see if ABC FXEC exists.)
If the EXEC file does exist, DMSINT adjusts register 1 to point to the
saae command as set up by DMSSCN, but preceded by CLa'EXEC', and then
issues an SVC 202 to call the corresponding EXEC procedure ('ABC EXEC' in the example).
If no such EXEC file exists for the first word typed in, DMSINT makes
a further check using the CMS abbreviation-check routine, DMSINA. If,
for example, the first word typed in had been 'E', DMSINT looks up 'E'
via the DMSINA routine. If an equivalent is found for 'E', DMSINT looks
for an EXEC file with the name of the equivalent word (for example, EDIT EXEC); if such a file is found, DMSINT adjusts register 1 as described
above to call EXEC and substitutes the equivalent word, EDIT, for the
first word typed in. Thus, if 'E' is a valid abbreviation for 'EDIT'
and the user has an EXEC file called EDIT EXEC, he invokes this when he merely types in 'E' from the terminal.
If no EXEC file is found either for the entered command name or for any equivalent found by DMSINA, DMSINT leaves the terminal command as
processed by DMSSCN and then issues an SVC 202 to pass control to DMSIIS which, in turn, passes control to the appropriate command program.
2-64 IBM VM/310 System Logic and Program Determination--Volume 2
Previous Page Next Page