Appendix G: A Sample EXEC Procedure for
CopyingDOS/VS Macros into a CMS MACLI B You may wish to create the following EXEC procedure, DOSMAC, which will
aid you in creating aDOS macro library under CMS. This procedure has not been formally tested by IBM; it is
presented here for your convenience only.
To execute the followingEXEC procedure, you must be in CMS/DOS mode.
If a private source statement library is to be used, the appropriateACCESS, ASSGN, and DLBL commands must be issued, specifying the DOS/VS disk on which that library resides. The procedure creates a DSERV listing on your CMS disk and uses the source statement directory listing
to create anEXEC file that issues a separate ESERV command for each DOS/VS macro. You then can use the CMS Editor to delete all the ESERV commands for macros you do not wish to move at this time. The procedure
then creates aCMS macro library with a MACLIB filename specified by
you. If you do not specify a filename, the default isDOSMAC. !Q1e: If you have too many DOS/VS macros to move to your eMS disk, the MACLIB build process may exceed one of the CMS file system limitations
and abnormally terminate. All macros prior to the one that caused the
error message probably were cataloged correctly. Reinvoke theEXEC procedure and then use the CMS Editor to delete the ESERV commands for
all the macros previously cataloged.You must also specify some other
filename (such asDOSMAC2) for this new macro library.
Alternatively, if you want to avoid the abnormal termination of theMAC LIB build process, you may want to delete some or all of the ESERV commands for the following DOS/VS macros the first time you invoke this EXEC procedure: BTMOD MCRAS SGCCWT CDMOD MTMOD SGEND DAMOD SDMODFI SGPMAIN DAMODV SDMODFO SGPSUB FOPT SDMODVO SGSVC IOINTER SDMODVU COBBG IOTAB SDMODW COBF2 ISMOD Check a DSERV listing and delete the ESERV commands for the
largestDOS macros first. Then manually create a second set of ESERV commands, specifying those macros not included in the first CMS MACLIB. Appendix G: Sample EXEC Procedure for Copying DOS/VS Macros 443
Copying
aid you in creating a
presented here for your convenience only.
To execute the following
If a private source statement library is to be used, the appropriate
to create an
then creates a
you. If you do not specify a filename, the default is
and abnormally terminate. All macros prior to the one that caused the
error message probably were cataloged correctly. Reinvoke the
all the macros previously cataloged.
filename (such as
Alternatively, if you want to avoid the abnormal termination of the
largest