-------------------------------------------------------------------------, I Macro XDApl WAIT POST EXIT/RETURN GETMAIN FREEMAIN
GET POoL FREEPOOL LINK
XCTL LOAD DELETE
GETMAIN/
FREEMAIN TIMEI ABEND SPIEl RESTORE1 BLDL/FINDI OPEN CLOSE STOWI OPENJ TCLOSE DEVTYPE1 TRKBAL FEOV WTO/WTOR1 EXTRACT1 IDENTIFY I ATTACH1
CHAp1 TTIMERI STIMERI DEQ1 SNAp1 ENQ1
FREEDBUF STAE DETACHI CHKPTI RDJFCB1 SYNADI BSPI GET/PUT READ/WRITE NOTE/POINT CHECK TGET/TPUT TCLEARQ STAX SVC Number ---00- 01 02 03 04 05 06 07 08 09 10 11
13
14
17
18
19 20 21
22
23
24
25
31
35 40 41
42
44
46
47
48
51
56
57 60 62
63
64
68
69
93
94
96
Function Read-or-write direct access volumes Wait for an I/O completion Post the I/O completion
Return from a called phase
Conditionally acquire user storage
Release user-acquired storage Simulate as SVC 10 Simulate as SVC 10 Link control to another phase
Delete, then link control to another
load phase
Read a phase into storage
Delete a loaded phase
Manipulate user free storage
Get the time of day
Terminate processing
Allow processing program to
handle program interrupts
Effective NOP Manipulate simulated partitioned
data files
Activate a data file
Deactivate a data file
Manipulate partitioned directories
Activate a data file
Temporarily deactivate a data file Obtain device-type physical
characteristics NOP Set forced EOV error code
Communicate with the terminal
Effective NOP Add entry to loader table
Effective LINK
Effective NOP Access or cancel timer Set timer Effective NOP Dump specified areas of storage
Effective NOP Release a free storage buffer
Allow processing program to
decipher abend conditions
Effective NOP Effective NOP Obtain information from FILEDEF command
Handle data set error conditions
Back up a record on a tape or disk
Access system-blocked data
Access system-record data Manage data set positioning Verify READ/WRITE completion
Read or write a terminal line
Clear terminal input queue Create an attention exit block
f1Simulated in the transient routine DMSSVT. Other simulation
f routines reside in the nucleus.
Figure 31. Simulated OS Supervisor Calls
272 IBM System programmer's Guide
Page of GC20-1807-7 As Updated April 1, 1981 by TNL GN2S-0829 SI MULATION NOTES Because CMS has its own file system and is a single-user system
operating in a __ Y.irtual maGhin.e_Yit_h_JrirtJl.al_stQ_rage, _ th_e_re are certain
restrictions for the simulated OS function in CMS. For example, HIARCHY options and options that are used only by as multitasking systems are ignored by CMS. Due to the design of the CMS loader, an XCTL from the explicitly
loaded phase, followed by a LINK by succeeding phases, may cause
unpredictable results.
Listed below are descriptions of all the OS macro functions that are
simulated by CMS as seen by the programmer. Implementation and program
results that differ from those given in Inst£yctiQn§ and Services and Macro Instructions are
stated. HIARCHY options and those used--;nly by OS multitasking systems are ignored by CMS. Validity checking is not performed within the
simulation routines. The entry point name in LINK, XCTL, and LOAD (SVC 6, 7, 8) must be a member name or alias in a TXTLIB directory unless the COMPSWT is set to on. If the COMPSWT is on, SVC 6, 7, and 8 must
specify a module name. This switch is turned on and off by using the macro. See the VM/37Q £MS gng for
descriptions of all CMS user macros. XDAP-SVCO WAIT-SVC1 POST-SVC2 EXIT/RETURN =SVC3 GETMAIN-SVC4 FREEMAIN-SVCS LI liK-SVC6 Differences in Implementation
The TYPE option must be R or W; the V, I, and K
options are not The BLKREF-ADDR must point
to an item number acquired by a NOTE macro. Other options associated with V, I, or K are not supported.
All options of
waits for the
specified ECBs. WAIT are supported.
completion bit to
The
be WAIT routine
set in the
All options of POST are supported. POST sets a
completion code and a completion bit in the specified ECB. Post ECB, execute end of task routines, release
phase storage, unchain and free latest request block,
and restore registers depending upon whether this is
an exit or return from a linked or an attached
routine. Do not use EXIT/RETURN to exit from an
explicitly loaded phase. If EXIT/RETURN is used for
this purpose, CMS issues abend code AOA. All options of GETMAIN are supported except SP and HIARCHY, which are ignored by CMS, and LC and LU, which will result in abnormal termination if used.
GETMAIN gets blocks of free storage.
All options of FREEMAIN are supported except SP, which
is ignored by CMS, and L, which will result in
abnormal termination if used. FREEMAIN frees blocks
of storage acquired by ..
The DCB and HIARCHY options are ignored by CMS. All
other options of LINK are supported. LINK loads the
specified -program in-to storage- (if necessa-ry) a-nd
passes control to the specified entry point. Part 3. Conversational Monitor System (CMS) 273
Previous Page Next Page