Method of Operation
This sectior. describes the VM/370 interface
between eMS and the IEBIMAGE program. Diagrams 13-1 and 13-2 describe the
functions of the interface .odules and
serve as a guide to the program listings.
The labels shewn indicate the closest label IEBIMAGE Diagram 13-1 DMKIMG to the function being docuaented. Use the
Directory and Program Organization sections
to find the labels in the prcgram listings
for any routines that are not shown in the
Method of Operation section. Figure 13-1
shows the relationship of these diagrams.
Diagram 13-2
DMKNMT
Figure 13-1. Key to the IEBIMAGE Interface Method of Operation Diagrams
232 IBM VM/370 Service Routines Program Logic
Input command line Control File Notes Module
1 GENIMAGE command parameters DMKIMG are validated. If a parameter is inval id, issue return code 100. 2 Create a DUMMY image library. I 3 Issue a FILEDEF command with
the AUXPROC option for the
DUMMY image library created in Step 2; this traps all READ and WRITE operations on that data set. If any FILEDEF errors occur, issue
a return code of 104.
4 Issue a GETMAIN for a 73,000 byte area for simulating OS LOAD macros.
5 Issue HNDSVC macro to handle the following SVCs: SVC 8 (LOAD) SVC 18 (BLDL) SVC 21 (STOW) 6 Call IEBIMAGE: Issue a CMS STATE command
for the TEXT file being searched
for and set appropriate return
codes in SVC save area. Diagraa 13-1. D!KI!G Output
1 Validate input parameters. I 2 Create a DUMMY image library. 3 Issue FILEDEFs for the
DUMMY image library, the
input control file, and the
output SYSPR INT file. I 4 Obtain storage for load area. I I 5 Issue HNDSVC macro. 6 Call IEBIMAGE. 7 Clean up.
Label Ref Notes LOOP1 Issue CMS LOAD for requested LOOP2 module and return the address
PARMERR of the area loaded into, to the
ENDPARMS I I I FILEBAD IBLDLRTN 1 issuer of the LOAD command.
Use CMS LOAD command to
get module into LOAD area and
move data into user-supplied
buffer for the READ. Treat as no-op and return to
issuer. Simulate operation of STOW macro by locating the module data in the IEBIBLKS work area
and create a TEXT deck from it:
1) Create ESD (external symbol directory) card and write to
TEXT file (GENIMAGE CMSUT1) 2) Create all necessary TXT
cards and write to TEXT file (GENIMAGE CMSUT1) 3) Create an END card and write
to TEXT file (GENIMAGE CMSUT1 )
7 Erase old TEXT file (if one existed)
and rename GENIMAGE CMSUT1 to a TEXT file named IEBIMAGE. DUMMY image library 'GENIMAGE CMSUT2A1' I TEXT I I File listing Module Label Ref LOADRTN READRTN I I I WRITERTN READEXIT STOWRTN TXTLOOP Chapter 13. DftKlftG and D!KNftT -- IEBI!AGE Interface 233
Previous Page Next Page