March 30, 1979
19maclib add dosmac eoj R" , maclib MACRO OPEN CLOSE GET PUT DIMOD DTFDI EOJ R;
map dosmac (termINDEX SIZE 2 43
46 4390 56
147 93
241 647
889 284
1174 620 erase eoj *
R;
assemble dostest
*
*
*
21ASSEMBLER DONE 22 NO STATEMENTS FLAGGED IN THIS ASSEMBLY R" , list file DOSTEST DOSTEST DOSTEST R;
dostest *ASSEMBLE A1 LISTING A1 TEXT A1
print dostest listing
R;
23 doslked dostest
24
R;
listfileDOSTEST DOSTEST DOSTEST DOSTEST DOSTEST R;
dostest *ASSEMBLE A1 DOSLIB A1 TEXT A1 LISTING A1 MAP AS
19Use the ADD function of the MACLIB command to add the macro EOJ to DOSMIC MACLIE. Then, issue the MACLIB command again, using the MAP function and the TERM option to
display a list of the macros in the library.20 Erase the EOJ files. You should always remember to erase files that you do not need
any longer. Reassemble the program.
21 Thistime, the assembler completes without encountering any errors. If your ASSEMBLE file still has errors, you should use the editor to correct them. 22 Use the LISTFILE command to check for DOSTEST files. The assembler created the files, DOSTEST LISTING and DOSTEST TEXT. The TEXT file contains the object module. You can print the program listing, if you want a printed copy. Then, you may want to
erase it.
23Use the DOSLKED command to link-edit the TEXT file into an executable phase and
write it into aDOSLIB. Since this program has no external references, you do not
need to add any linkage editor control statements.
24Now, you have a DOSTEST DOSLIB, containing the link-edited phase, and a MAP file,
containing the linkage editor map.You can display the linkage editor map with the TYPE command, or use the PRINT command if you want a printed copy.
372IBM VM/370 CMS User's Guide
19
map dosmac (term
46 43
147 93
241 647
889 284
1174 6
R;
assemble dostest
*
*
*
21
dostest *
print dostest listing
R;
23 doslked dostest
24
R;
listfile
dostest *
19
display a list of the macros in the library.
any longer. Reassemble the program.
21 This
erase it.
23
write it into a
need to add any linkage editor control statements.
24
containing the linkage editor map.
372