Program Organization
Thissect10n includes program descriptions of modules DMKIMG and DMKMNT. DMKIftG Provides a CMS interface for the VS-based IEBIMAGE program by handling certain SVCs
issuedby IEBIMAGE and translating them
intoCMS terms. g2int DMKIMGBG Routines Called --FSSTATE-----Determines if control file exists. BNDSVC - Traps certain SVCs issued by IEBIMAGE. GETMAIN - Gets area for simulating OS LOAD SVC .. FREEMAIN -Releases OS LOAD area.
FILEDEF Issues FILEDEFs neededby IEBIMAGE. LOAD - Simulates OS LOAD and QSAM READ. FSWRITE - Creates a new TEXT file (STPW simulation) • Attributes --Disk-resident, loaded into CMS user area. called via SVC 202, serially reusuable. R1: Standard CMS PLIST R14:
Return address R15: Address of GENIMAGE R15: Return code < 100 for normal
IEBIMAGE execution
R15: Return code100 if error in
input parameters
R15: Return code 104 if error
during FILEDEF MAINBIGH - Saves and restores its value
between lo.ads.DMKNMT constructs an image library from TEXT files on user disks and creates or
replaces thatimage library via DIAGNOSE code X' 74' • Point tMKNMTBL Routines Called --FSSTATE-- Determines if CNTRL and TEXT files. exist. ISREAD - Reads in the contrel file. CMS LOAI - Loads the TEXT file into the
transient area.
Attributes--rIsk-resident as "IMAGELIB". loaded into eMS user area, via SiC 202, serially reusuable. !nt!I R1: Standard CMS PLIST Register 15 contains a return code:
Return o Image library updated
successfully
4 Control file· not found or in
error
8Specified image nen-existent
12Specified image caused LOAD errer
16 Insufficient virtual storage
20 I.age litrary is currently active100. Error in FSREAD return
code].§age HO: work register R1:
R2:
B3:
B4:
R5:
R6:
R7:
B8:
R9:
B12:
R14: R 15: PLIST register and temporary werk
registerSource address for MveL Source length fer MVCL Target address for MVCL Target length fer MVCL current end of image library in
storage
Pointer to next
directory entry
Running counter for
directory entries
starting address of
library in storageIMKNMT module base
available
number of
the imageBAtR return address and scratch
register
BALR branch address and scratch
register None
Chapter 13.DMKIMG and DMKNMT -- IEEIMAGE Interface 235
This
issued
into
FILEDEF Issues FILEDEFs needed
Return address R15: Address of GENIMAGE
IEBIMAGE execution
R15: Return code
input parameters
R15: Return code 104 if error
during FILEDEF
between lo.ads.
replaces that
transient area.
Attributes
Return
successfully
4 Control file· not found or in
error
8
12
16 Insufficient virtual storage
20 I.age litrary is currently active
code
R2:
B3:
B4:
R5:
R6:
R7:
B8:
R9:
B12:
R
register
storage
Pointer to next
directory entry
Running counter for
directory entries
starting address of
library in storage
available
number of
the image
register
BALR branch address and scratch
register
Chapter 13.












































































































































































































































































