LA R1,PLIST SVC 202 DC AL4(ERROR) PLIST DS OF DC CLB'SUBCOM' SUBCNAME DC CLB'name' COMMAND NAME SUBCPSW DC XL2'0000' SYSTEM MASK, STORAGE KEY, ETC.
DCAL2(O) RESERVED SUBCADDR DC A (*-*) ENTRY ADDRESS, -1 FOR QUERY DC A(O) USER WORD SUBCOM creates an SCBLOCK control block containing the information speci
fied in theSUBCOM parameter list. SVC 202 uses this control block to locate the
specified routine. TheSUBCOM chain of SCBLOCKs is released at the com
pletion of a command (that is, whenCMS displays the Ready message). See VM/SP Data Areas and Control Block Logic, Volume 2 for a description of the SCBLOCK control block.
When a program issues anSVC 202 call to a program that has become known to CMS via SUBCOM, it places X'02' in the high-order byte of register one. Control
passes to the called program at the address specified by the called program when it
invokedSUBCOM. The PSW specifies the system mask, the PSW key to be used, the program mask
(and initial condition code), and the starting address for execution. The
problem-state bit and machine-check bit may be set. The machine-check bit has
no effect inCMS under CPo The EC-mode bit and wait-state bit cannot be set;
they are always forced to zero. Also, one 4-byte user-defined word can be associ
ated with theSUBCOM entry point, and referred to when the entry point is subse
quently called.
Note: When control passes to the specified entry point, the register contents are:
R2 Address ofSCBLOCK for this entry point.
R 12 Entry point address.
R13 24-word save area address.
R 14 Return address (CMSRET).
R15 Entry point address.
You can also useSUBCOM to delete the potential linkage to a program or rou
tine'sSCBLOCK, or to determine if an SCBLOCK exists for a program or routine.
To delete a program or routine'sSCBLOCK, issue:
DCCLB'SUBCOM' DC CLB'program or routine name'
DCBX'OO' To determine if an SCBLOCK exists for a program or routine, issue:
DCCLB'SUBCOM' DC CLB'program or routine name'
DCA(O) SCBLOCK addressed as a returned value
DC 4X'FF'
Functional Information 347
DC
fied in the
specified routine. The
pletion of a command (that is, when
When a program issues an
passes to the called program at the address specified by the called program when it
invoked
(and initial condition code), and the starting address for execution. The
problem-state bit and machine-check bit may be set. The machine-check bit has
no effect in
they are always forced to zero. Also, one 4-byte user-defined word can be associ
ated with the
quently called.
Note: When control passes to the specified entry point, the register contents are:
R2 Address of
R 12 Entry point address.
R13 24-word save area address.
R 14 Return address (CMSRET).
R15 Entry point address.
You can also use
tine's
To delete a program or routine's
DC
DC
DC
DC
DC 4X'FF'
Functional Information 347