ROUTINE
Build cleanup routine (#CMCU) parameter list. #CCMG
Display message MIC 5632. #CCMU
II
Indicate message screen active (TUBMSGA). #CCMXReset broadcast message failure.
Determine TUB to use .
•
Turn off light at display station. #DWDM~
Set on initial call switch. #CCMX
Build work station data managemen~ parameter list and insert work station I D.
Put screen to proper terminal. #DWDM
Reset initial call switch. #CCMX
Check user message queue and if not empty:
•
Find message queue sector. (TWA r~quest SVC 51)•
Read message from disk.•
Decrement use count byte in message sector.•
Write updated message sector back to disk. (TWA request SVC 51)•
Increment message count on screen..
•
Decrement message Q-count.•
Build work station data management parameter list.•
Output messages to proper terminal. #DWDM•
If spool inactive, system in single program mode, and log printer active:put message to printer. #CMCU
•
Repeat until user message queue empty. #CCMXIf user message queue empty:
•
Set indicator to restore command screen (TUBRST2) when enter key pressed.•
Indicate message screen active and more messages to be displayed (TUBMSGA).•
Load and pass control to CP mainline (#CPML):Diagram 2.11 (Part 3 of 3). Perform MSG Command Processing 2-28
Licensed Material-Property of IBM
From: Input Router (#CPRT)
II INPUT - - - -... ~OCESS
XR2
C
Parameter list Main StorageTransient Area:
#CCOF User Area
CP work area TUB TCB
11----"...,. ....
":> D
Determine function requestedD
Process MODE commandlEI
Process OFF commandOUTPUT
a::o:::::::cE:=~CP work area TUB Display
To: Cleanup Routine (#CMCU)
MODULE/
OEseR IPTION ROUTINE
D
Ensure terminal not in inquiry mode (TUBATTR4). #CCOFIf menu active and menu from system library, subtract 1 from format 1 user count.
Search command routing code for requested function:
• It MODE command, go to
D.
•
If OFF command or if ERROR OFF command code, go toD.D
It work station in command mode (TUBATTR2):•
If status active, call #CCSM to end status.•
Indicate terminal in standby mode (TUBATTR2).•
Set up work station data management parameter list.•
Display standby screen. #DWDM•
Load and pass control to cleanup routine (#CMCU). #CCOFIf work station in standby mode:
•
Indicate terminal in command mode (TUBATTR2).•
Set up work station data management parameter list.•
Display command screen #DWDM•
Load and pass control to #CMCU. #GCOFIJ
Indicate terminal not signed on (TUBATTR1).It OFF command from command work station:
•
If status active, call #CCSM to end status.•
Initialize terminal unit block (TUB).•
If job control block (JCB) pointed to by TUB:-
If format 1 user count is 1, free format 1 for each file specification block (FSB).-
If user count greater than 1, decrement user count by 1 for each FSB.-
Free each FSB.Diagram 2.12 (Part 1 of 2). Perform MODE and OFF Command Processing
Method of Operation 2-29
Licensed Material-Property of IBM
OEseR IPTION MODULE!
ROUTINE
•
Free job control block (JCB). #CCOF•
Initialize local area to blanks.•
Read work station configuration record to obatin default library name. Disk lOS•
If ERROR OFF, clear ERB and exit. #CCOF•
I nsert library name in work station data management parameter list. #DWDM•
Turn off the message waiting light.•
Display command work station sign-on display.•
If test request call, set off test request and exit.•
Load and pass control to #CMCU. #CCOFIf OFF command from data work station:
•
Initialize TUB.•
Build work station data management parameter list.•
Display data work station sign-on display. #DWDM•
Load and pass control to #CMCl,J. #CCOFNote: If errors occur, call #CMCU to issue error message.
(
Diagram 2.12 (Part 2 of 2). Perform MODE and OFF Command Processing 2-30
Licensed Material-Property of IBM
From: Input Router (#CPRT)
INPUT _ _ _ _ .. ~OCESS
XR2
C
CP work area Main StorageTransient Area:
#CCPY User Area
TUB TCB JCB
o
Process PRIORITY command---::i1
'" OUTPUT _ _ _ _
Parameter list for #CMCU JCB TCB
To: Cleanup Routine (#CMCU)
MODULE/
DEseR IPTION ROUTINE
D
Determine if command entered from console Qr work station (TUBATTR2). #CCPYIf command entered from work station:
•
Set priority indicator in job control block (JCBDSCH2).•
Load and,pass control to cleanup routine (#CMCU) to display message (PRIORITY ACCEPTED).If command entered from console:
•
Ensure valid jobname supplied.•
Find JCB for specified job.•
Verify ON/OFF operand i(supplied.•
If ON or not specified, set priority indicator in JCB (JCBDSCH2) and set TCB (TCBPRIOR) priority to high.•
If OFF requested, set off priority indicator in JCB and set TCB priority to low.Note: If errors occur, call #CMCU to issue error message.
Diagram 2.13. Perform PRTV Command Processing
Method of Operation 2-31
Licensed Material-Property of IBM
From: Input Router (HCPRT)
XR2 ( CP work area
Main Storage
Transient Area:
HCCRE User Area
Console matrix TCB
TUB
~OCESS
II-_ _ _ ...
h.::> II
Perform preliminary command processingpo
fI
Process I parameter if suppliedII
Process C parameter if suppliedII
Process message I D parameter if suppliedII
Process response parameter if suppliedOUTPUT _ _ _ ...
User response TCB TUB
To: Cleanup Routine (HCMCU)
MODULE!
OESeR IPTION ROUTINE
rmt
Determine if status display on display screen (TUBATTR2l. HCCREIssue error message if REPLY command and status display present (MIC 5616), HCMCU Scan system console image matrix for message response from end of job (EOJ) (CMCISWH). HCCRE
If response from EOJ, put ** over message IDs. HCMEJ
If no message I D entered (first parameter null) or message ID greater than two characters, issue error HCMCU message (MIC 5617).
fil
Determine if I parameter entered. If entered: HCCREC) Scan image matrix for throw~response-away bit (CMCITHR).
@)o
Indicate response given (CMCIREP).0 Put * * over message I D. HCMEJ
0 Display successful message (MIC 5615). HCMCU
C) If number of available lines is five or more, issue messages still pending. HCMCI 0 Pass control to cleanup routine (#CMCU).
(ii
If C parameter entered: HCCREt>
0 Rearrange matrix so all messages still in need of a response are at the end of the matrix. HCMEJC/) Roll down screen and clear rolled lines. #DWDM
0 Display successful message (MIC 5615). HCMCU
0 If number of available lines is five or more, issue messages still pending . HCMCI
•
Pass control to cleanup routine (HCMCU).Diagram 2.14 (Part 1 of 2). Perform REP L Y Command Processing 2-32
Licensed Material-Property of IBM
~
MODULE/
DESCRIPTION ROUTINE
II
Syntax check message I D. #CCREIssue syntax error message (MIC 5617) if necessary. #CMCU
Search system console image matrix for message ID match. #CCRE
.
Issue error message (MIC 5618) if no match found. #CMCU
If match found is throw-away-response, go t o D O .
II
Blank out response data area. #CCREIf nonresponse entered for operand 2 and, #CMCU
if SYSLOG halt, call #CCRS to handle second level message: #CCRE
•
Read console image sector. #CCRS•
Extract MIC number from image.• •
Retrieve second level message from user message member. #MGRET~
•
Display reply successful message. #CMCU•
Save console screen. #DWDM0 Display second level message.
• •
Indicate restore console interface on next keystroke. #CCREf-II
•
Pass control to cleanup routine (#CMCU).If operand 2 is a response:
•
Verify operand 2 length less than or equal to caller requested option length.•
Issue invalid length message (MIC 5619) if necessary. #CMCU•
If SYSLOG halt: #CCRE-
Verify option entered is permitted.-
Issue option response error message (M IC 5620) if necessary. #CMCU-
If response on, go toD O . #CCREHandle response not previously processed:
•
Move response to task work area.•
Pass response to user.•
Post task complete.•
Pass control to #CMCU.Note: If errors occur, call #CMCU to issue error message.
Diagram 2.14 (Part 2 of 2). Perform REPLY Command Processing
Method of Operation 2·33
Licensed Material-Property of IBM
From: Input Router (#CPRT)
D
Determine function requestedfI
Process START commandII
Process STOP commandII
Process RESTART commandIOU
TPU
T 1ia!!il1!lSSr:.._OESeR IPTION ROUTINE
D
·Search for command in command routing code: #CCRT•
If START command, go t o f l .•
If STOP command, go toII.
•
If RESTART command, go toD.D
Search for operand 1 in start command table.If operand 1 invalid, issue error message. #CMCU
If operand 1 is PRT or P, load spool transient (#CCRR): #CCRT
•
If spool not supported or writer active, issue error message. #CMCU•
If writer not active: #CCRR-
Set forms number in class/page number area (BPCLSS) if form number given.- Create job control block (JCB) for writer.
-
Attach spool writer. #SVAT-
Issue start successful message (MIC 5664).If operand 1 is WORKSTN or W: #CCRT
•
If operand 2 is missing or invalid, issue error message (MIC 5667). #CMCU• • -
If operand 2 is ALL: Set start initiation flag in terminal unit block (TUB) for all work stations. #CCRT~
-
Issue start successful message (MIC 5664). #CMCUDiagram 2.15 (Part 1 of 3). Perform START, STOP, or RESTART Command Processing 2-34
Licensed Material-Property of IBM
(
OEseR IPTION MODULE/
ROUTINE
0 If operand 2 is work station 10: #CCRT
-
Find specified work station on terminal unit block (TUB) chain.-
Set start initiation flag for that specific work station.-
Issue start successful message (MIC 5664). #CMCUIf operand 1 is JOBQ or J, load job queue transient (#CCJS): #CCRT
•
Ensure dedicated program not running or Job queue not empty. #CCJS•
Issue error message if necessary. #CMCU•
If unable to attach job because resources not available: #CCJS-
Put entry back on top of queue. Disk lOS•
Restart spool writer and job queue if they were active at the time stop system was issued.0 Start work stations.
If operand 1 is JOB:
G If operand 2 is missing or invalid, issue error message (MIC 5567). #CMCU
0 If operand 2 is ALL: #CCRT
-
Find task control block (TCB) chain.- Ensure task suspended by system operator.
- Set off suspended flag (TCBSDTSOl.
-
Resume user tasks.-
Issue start successful message (MIC 5664). #CMCU•
If operand 2 is jobname: #CCRT-
Ensure val id jobname.-
Find task control block (TCB) for specified jobname.-
Ensure task suspended by system operator.-
Set off suspended flag (TCBSDTSO)'-
Resume user task.-
Issue start successful message (MIC 5664). #CMCUII
Search for operand 1 in stop command operand table. #CCRTIf operand 1 invalid, issue error message. #CMCU
If operand 1 is PRT or P, load spool transient (#CCRR): #CCRT
• •
If spool not supported or writer previously stopped, issue error message. #CMCU~
•
Set stop writer flag (BPFLAG). #CCRR-
Find specified work station on TUB chain.-
Set off start initiation flag in TUB for specific work station.-
Issue stop successful message (MIC 5663). #CMCUDiagram 2.15 (Part 2 of 3). Perform START, STOP, or RESTART Command Processing
Method of Operation 2-35 Licensed Material-Property of IBM
MODULE!
OEseR IPTION ROUTINE
If operand 1 is JOBO or J, load job queue transient (#CCJS): #CCRT
•
Ensure dedicated program not running. #CCJS•
Indicate job queue stopped in SCA.• •
Issue stop successful message. #CMCU~
If operand 1 is SYSTEM or S: #CCRT
•
Ensure stop all indication flag (SCAMALU not already set.•
Set stop all indication flag (no new JOBO or spool tasks will be started).•
Post for input op-end, all never ending programs that have an invite count of zero for shut down inquiry.•
Stop work stations~•
If operand 2 is SORT, or not given, perform keysort on all files that have the sort or merge bits on in the #DDKAA F1 (F1AMSORT, F1AMMRGE).•
Issue stop successful message (MIC 5663). #CMCUIf operand 1 is JOB: #CCRT
•
If operand 2 is missing or invalid, issue error message (MIC 5667). #CMCU•
If operand 2 is ALL: #CCRT-
Find TCB chain.-
Set task suspended indicators (TCBSDTSO).-
Suspend user tasks.-
Issue stop successful message (MIC 5663). #CMCU•
If operand 2 is jobname: #CCRT-
Ensure valid jobname.-
Find TCB for specified jobname.-
Set task suspended indicator (TCBSDTSO).-
Suspend user task.-
Issue stop successful message (MIC 5663). #CMCUII
Load and pass control to spool transient (#CCRR). #CCRTEnsure spool supported. #CCRR
If spool writer active:
•
Set page number to value given in operand 2 or set to zero if no operand supplied.•
Set flag (BPFLAG) to restart writer.•
Issue spool writer restarted message (MIC 5703). #CMCUIf spool writer not active: #CCRR
•
Set page number to value given in operand 2 or set to zero if operand 2 not supplied.•
Set flag (PBFLAG) to restart writer.•
Attach spool writer. #SVAT•
Issue restart successful message (MIC 5703). #CMCUNote: If errors occur, call #CMCU to issue error message.
Diagram 2.15 (Part 3 of 3). Perform START, STOP, or RESTART Command Processing 2-36
Licensed Material-Property of IBM
From: Input Router (#CPRT) INPUT _ _ _ _ ....
~OCESS
XR2 (parameter list