Appendix G: A Sample EXEC Procedure for
Copying DOS/VS Macros into a CMS MACLI B You may wish to create the following EXEC procedure, DOSMAC, which will
aid you in creating a DOS macro library under CMS. This procedure has not been formally tested by IBM; it is
presented here for your convenience only.
To execute the following EXEC procedure, you must be in CMS/DOS mode.
If a private source statement library is to be used, the appropriate ACCESS, 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 an EXEC 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 a CMS macro library with a MACLIB filename specified by
you. If you do not specify a filename, the default is DOSMAC. !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 the EXEC 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 as DOSMAC2) for this new macro library.
Alternatively, if you want to avoid the abnormal termination of the MAC 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
largest DOS 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
Creating the DOSMAC EXEC Procedure
Issue the following command to create a EXEC procedure called DOSMAC EXEC: EDIT DOSMAC EXEC Enter the INPUT subcommand to get into input mode and key in the
following lines. Do not key in the numbers along the left side of
the following example. The numbers refer to notes of explanation that
follow the example.
&C ONT ROL OFF &GENSWT = 0 CP PURGE RDR ALL CP 9 * CLASS A STYPE ENTER THE ADDRESS OF YOUR SYSRES VOLUME ( DEFAULT = 350 )
&READ ARGS EQ 0 ACCESS 350 Z &IF &INDEX NE 0 ACCESS &1 Z SET DOS ON Z (VSAM &TYPE IF YOU WISH TO ASSGN AND DLBL A PRIVATE SOURCE STATEMNT LIBRARY &TYPE NOW IS THE TIME ( ENTER YOUR ASSGN ). IF YOU DO NOT ENTER A NULL LI
&READ &TYPE A DLBL IS ALSO REQUIRED FOR SSL &READ -MACGEN &CONTINUE &TYPE ENTER THE NAME OF THE MACLIB TO BE CREATED THE DEFAULT IS DOSMAC &READ ARGS &IF tINDEX EQ 0 &LIB = DOSMAC &IF &INDEX NE 0 &LIB = &1
1. CP SPOOL CONS START NOTERM DSERV SD ( TERM CP SPOOL CONS STOP TERM CP CLOSE 9
READ $ESER EXEC 2. COPYFILE $ESER EXEC A $ESERV EXEC A ( LRECL 80 REPLACE &BEGSTACK DEL Q
F CP DEL 5 TOP C / /&1 &2/*
FILE
&END EDIT $ESERV EXEC ERASE $ESER EXEC -STACKER &CONTINUE &BEGTYPE 3. IF YOU WISH TO ALTER THE LIST OF MACROS NOW IS THE TIME TO DO SO YOU MAY BYPASS ALTERATION BY ENTERING A NULL LINE OR ELSE ENTER A NON-BLANK CHARACTER TO BEGIN ALTERATION ALTERATION IS ACCOMPLISHED VIA EDIT'ING THE EXEC FILE CONTAINING THE KACR( YOU MUST ISSUE THE EDIT SUBCOMMAND FILE TO RE-ENTER THIS EXEC AND CONTINUl &END
&READ ARGS &IF &INDEX NE 0 EDIT $ESERV EXEC &CONTROL ALL UUU IBM VM/37Q Planning and System Generation Guide
Previous Page Next Page