Using a DO Command File [ HP Resource Sharing for MPE/iX ] MPE/iX 5.0 Documentation
HP Resource Sharing for MPE/iX
Using a DO Command File
The DO command lets you start a command file containing DISCMGR commands,
and execute the commands in sequence. The file can be either and MPE
file or a shared disc DOS file. If you use an MPE file, it must be an
unnumbered ASCII file with a fixed record length that contains less than
256 characters per record.
When you use the DO command, DISCMGR first searches MPE files for the
filename you entered, then it searches the shared disc files. If your
command file is a shared disc file, make sure you do not use the same
filename for an MPE file that is not a command file. If you do, DISCMGR
will stop searching when it finds the MPE file, and will display an error
message telling you that the filename you entered is not a command file.
Let's say you set up a DO command file called EMPRPT with the following
commands:
SW MORE OFF
USE M: \MIKE
MPETODOS EMPNUM TO M:\EMPNUM;REPLACE
TYPE M:\EMPNUM
USE E:\WORDSTAR
MPETODOS EMPMEMO TO E:EMPMEMO;REPLACE
SW MORE ON
When you are ready to execute the commands in the DO file, at the DISCMGR
prompt enter:
DO commandfile
For example, to execute the sample DO command file, enter:
DO EMPRPT
The commands in the DO file are executed in the order they are listed.
If you wish, you can insert other DO command files within a file. These
command files can be nested five deep. For example, the last line of the
DO command file called CONVERT could be DO FILECOPY, which would then
open the FILECOPY command file and execute the commands in that file.
MPE/iX 5.0 Documentation