• Aucun résultat trouvé

licensed Material-Property of IBM

Dans le document Property of IBM (Page 105-114)

From: Command Processor Input Router (#CMRT)

II INPUT a..::;:0CESS

.. D

Process 0 option or error opcode

XR2-CPWRK

;>

~

Main Storage

D

Process 1 option or opcode requesting 1 option

Transient Area:

II

Process Options 2, 3, and 5

#CPIQ

II

Process 4 option User Area

II

Process invalid option opcode

TUB@

DESCRIPTION

o

Dequeue inquiry TUB and free.

Resume interrupted program. (See Resume Function, Diagram 2.25.)

fJ

If second inquiry, issue diagnostic.

If tas.k does not allow inquiry, issue diagnostic.

If task is not a MRT, and if the sector queue count is not 0,

- If no space, issue a diagnostic.

• If menu active and menu from # LI BRARY, increment format 1 use count.

• Initialize JCB and WSWA.

• Call RFINDLIB to

find each library in the FSBs.

o

Put up the command display.

II

If TUB and TCB

=

0, the TCB is a MRT; go to

DO.

Indicate to restore command display at termination, and disable inquiry.

Diagram 2.23 (Part 1 of 2). Perform Inquiry Menu Function

Licensed Material-Property of IBM

... :>

Method of Operation 2-51

OEseR IPTION

If job is cancellable and not in termination, swap TUBs to remove inquiry:

• Find the previou's TUB on the TUB chain.

If job is not cancellable:

• Indicate 2 or 3 cancel in TCB.

Indicate user display is not active.

If a 2 option was taken:

• If task is not in termination and if the MIC in the JCB is zero, move MIC 3721 to JCB.

If a 3 option was taken, indicate abnormal release in TUB.

If the program has released the display station, process the release.

Set the no skip flag in TUB.

If an ACE exists on the complete queue,

• Requeue it, last-in-first-out, to the complete queue.

• Dispatch task.

Otherwise, set inquiry latch in JCB.

Process as option O. (See Diagram 2.25.)

II

Build parameter list.

Pass control to #CMCU to issue error message.

Diagram 2.23 (Part 2 of 2). Perform Inquiry Menu Function 2-52

Licensed Material-Property of IBM

MOOULE/

ROUTINE

#CPIO

#CPTC

#CPIO

INPUT

From: Command Processor Input Router (#CPRT)

L.::;:0CESS

o

Process option 0 or resume interrupted program

o

Restore display.

e

Swap TUBs to free inquiry TUB:

If display station has been released, call #CPTC to release.

If MRT:

• If implicit invite to TUB, or invite due to put for read under format:

- Add 1 to MRT REa count.

- Add 1 to work station count.

• If requester count less than MRTMAX, set on no-skip bit.

e

Have task dispatched.

• Return to caller.

IfSRT:

• If printer readjustment for forms or image is required, assign an RB that causes the resumed task to call #CSIM.

• Set off task suspend bit in TCB.

• If suspended due to stop command or error suspend, bypass post; otherwise, post, the task out of suspend.

Diagram 2.24. Perform Resume Function

MODULE!

Method of Operation 2·53

Licensed Material-Property of IBM

From: Command Processor Input Router

o

Process # CPRT accept errors

fI

Process EOJ release

II

Process message enter

IJ

Process restore request

II

Process command key request

----:rt

ITo: Command Processor Mainline (#CPML)

DESCRIPTION

• If messages pending, display them. Otherwise:

put up command display.

II

If messages active, process them.

II

If restore indicated in TUB:

• If console restore, restore console.

Handle messages:

• If work station:

- If status active, update status display. Otherwise:

put up command display and post tasks requesting display station.

Return to caller.

II

If command key 1 and if resume pending:

• Handle 0 option.

If resume not pending:

• Indicate key not valid.

If test request key:

• If signed on, indicate key not valid. Otherwise, attach test request.

Diagram 2.25. Perform Special Command Processing Function 2-54

Licensed Material-Property of IBM

MODULE/

From: CP task post processor (#CPTC) or

Inquiry menu processor (#CPIQ) INPUT _ _ _ _ _

~OCESS

(XR1

CPWRK

(XR2

TUB Main Storage SCA

Transient Area:

#CPIO User Area Request code

D

Save work area in RB

fJ

Set up work station data management parameter list dependent on request code

II

Call work station data management

II

Restore work area

----:i1

~

OUTPUT _ _ _

_

System display

..

To: Calling Routine

MODULE/

OESeR IPTION ROUTINE

o

Save 30 bytes of work area (starting at IOCODE) and use this area for work space. #CPIO

fJ

If clear request, indicate clear opcode.

If invite request, indicate invite opcode.

If stop invite request, indicate stop invite opcode.

If save request, indicate save opcode.

If restore request, indicate restore opcode.

If none of the above, indicate put then invite request.

If not invite, turn off invite opcode.

Move work station 10 to output area.

If console mode, set up console index.

If standby mode, set up standby index.

Diagram 2.26 (Part 1 of 2). Perform Command Processor/Work Station Data Management Interface Function

Method of Operation 2-55

Licensed Material-Property of IBM

MOOULE/

OEseR IPTION ROUTINE

If inquiry mode: #CPIO

• Create jobname and work station 10.

If MRT, set up MRT inquiry index and go t o l l . Otherwise, point to SRT inquiry index.

If laB count is not zero, indicate delayed option 1.

If noncancellable, indicate delayed option 2,3, or 5.

If in termination, indicate a delayed option 2.

II

Pass control to HWDSM to display data.

If I/O error, indicate hex FF in return I/O code.

If restore command reject, issue clear screen, UDWDM

and try restore again. HCPIO

II

Restore CPWRK from RB.

Diagram 2.26 (Part 2 of 2). Perform Command Processor/Work Station Data Management Interface Function 2-56

Licensed Material-Property of IBM

From: Calling Program

~ INPUT I L..F0CESS I

Console SYSLOG

--==---:>.

Perform console logical I/O (Diagram 2.28) _"",-_ _ _ _

-=-...

System console OUTPUT _ _ _ _

queue element User input area

System request indicator

I I I I

display

---==---... :>.

Perform work station logical I/O

->

Work station

I I

(Diagram 2.29)

I I

display

---==--->.

Process system request event

>

Saved or restored

(Diagram 2.30) display

---:Tl

To: Calling Program Diagram 2.27. Overview of Console Management

Method of Operation 2·57

Licensed Material-Property of IBM

From: Calling CP Transient INPUT _ _ _ _ _

I..I:;:0CESS

(XR2

Parameter list

D

Perform preliminary processing

lEI

Move elements from SYS LOG queue to console disk queue

Main Storage

II

Display messages at system console

II

Perform console management end of job function as required

OEseR IPTION

D

Check system communication area (SCA) error recovery procedure (ERP) indicator (SCAMERP) and if on, call control storage error handler (#SVER).

Assign task work area space.

Find terminal unit block (TUB) for system console.

Enqueue the TUB on the console queue.

If there are no more messages to be displayed, turn off light.

fJ

Determine if any elements on SYSLOG queue waiting to be moved from user SYSLOG sector to console #CMCI SYSLOG disk queue.

Find space on SYSLOG disk queue if possible.

Move element from user SYSLOG sector to console SYSLOG disk queue. Disk lOS

Free up SYSLOG queue sector for reuse. HCMCI

Diagram 2.28 (Part 1 of 3). Perform Console Logical 1/0 Function 2·58

Licensed Material-Property of IBM

OEseR IPTION

Dans le document Property of IBM (Page 105-114)