March 30, 1979
you can set the partition size with the DOSPART operand of the SET command. For example, after you enter the command:
set dospart 300k all programs that you subsequently execute during this session will
execute in a 300K partitionw In this way you can: Set a smaller partition size for programs that run better in smaller
partitions. Set a smaller partition size to leave more free storage. If the
reduction of the DOS partition does not free enough storage for the GETVIS commands, a larger virtual machine must be defined.
If you enter:
set dospart off
the eMS calculates a partition size when you execute a program. This is
the default setting.
Note that the eMS partition, unlike the DOS partition, is used only for
the loading and executing of programs invoked by the FETCH or LOAD commands. Areas allocated by GETVIS will be assigned addresses outside
the partition but within the user's virtual machine. SETTING THE UPSI BYTE If your program uses the user program switch indicator (UPSI) byte, you
can set it by using the UPS I operand of the CMS SET command. The UPSI byte is initially binary zeros.. To set it to 1s, enter
set upsi 11111111
To reset it to zeros, enter:
set upsi off
Any value you set remains in effect for the duration of your terminal
session, unless you reload CMS (with the IPL command). DEBUGGING PROGRAMS IN eMS/DOS You can debug your DOS programs in CMS/DOS using the facilities of CP and CMS. By executing your programs interactively, you can more quickly
determine the cause of an error or program abend, correct it, and
attempt to execute a program again,.
The CP and eMS debugging facilities are described in "Section 11. How YM/370 Can Help You Debug Your Additional information for
assembler language programmers is in "Section 13. Programming for the eMS Environment."
178 IBM VM/370 eMS User's Guide c
USING EXEC PROCEDURES IN CMS/DOS During your program development and testing cycle, you may want to
create EXEC procedures to contain sequences of eMS commands that you execute frequently. For example, if you need a number of MACLIBs, DOSLIBs, and DLBL definitions to execute a particular program, you might
have an EXEC procedure as follows: &CONTROL ERROR TIME &ERROR &EXIT &RETCODE GLOBAL MACLIB TESTLIB DOS MAC ASSEMBLE TESTA PRINT TESTA LISTING DOSLKED TESTA TESTLIB GLOBAL DOSLIB TESTLIB PROGLIB ACCESS 200 E ASSGN SIS010 E &BEGSTACK DOS.TEST3.STREAM.BETA &END
DLBL DISK1 E DSN ? (SYS010 ASSGN SYS011 PUNCH CP SPOOL PUNCH TO * ASSGN SYS012 A
DLBL OUTFILE A CMS TEST DATA (SIS012 FETCH TESTA (START &IF &RETCODE = 100 &GOTO -RET100
&IF &RETCODE = 200 &GOTO -RET200 &EIIT &RETCODE
-RET100 &CONTINUE -RET200 &CONTINUE The &CONTROL and &ERROR control statements in the EXEC procedure
ensure that if an error occurs during any Fart of the EXEC, the
remainder of the EXEC does not execute, and the execution summary of the EXEC indicates the command that caused the error.
Note that for the DLBL command entered with the DSN ? operand, you
must stack the response before issuing the DLBL command. In this
example, since the DOS file-id has more than eight characters, you must
use the &BEGSTACK control statement to stack it. If you use the &STACK control statement, the EXEC processor truncates all words to eight
characters. When your program is finished &RETCODE indicates the contents of
program exited. You can use this
your EXEC procedure. Additional
example by ellipses.
executing, the EXEC special variable
general register 15 at the tiae your
value to perform additional steps in
steps are indicated in the preceding
For detailed information on creating EXEC procedures, see "Part 3.
Learning To Use EXEC." Section 9. Developing DOS programs Under CMS 119
Previous Page Next Page