Pg. of GC20-1819-2 Rev March 30, 1979 by SD23-9024-1 for 5748-XX8 THE RSERV COMMAND In CMS/DOS, to manipulate relocatable modules that have been cataloged
either on the system or a private relocatable library you must first
copy them into CMS files with the RSERV command. You can link-edit modules directly from DOS relocatable libraries, but if you want to add
or modify linkage editor control statements for a module, you must place
the control statements in a CMS file.
If you are copying a relocatable module from the system relocatable
library, then you should make sure that you have indicated the system
residence disk when you entered the CMS/DOS environment:
set dos on f
then you can issue the RSERV command specifying the name of the
relocatable module you want to copy:
rserv rtna
The execution of this command results in the creation of a CMS file named RTNA TEXT on your A-disk.
If you want to copy a relocatable module from
library, you must first use the ASSGN and DLEL
private library known to CMS/DOS: assgn sysrlb d
dlbl ijsysrl d dsn reloc lib (sysrlb
a private relocatable
commands to make the
Then, issue the RSERV command for a specific module in that library:
rserv testrtna
to create the CMS file TESTRTNA TEXT from the module named TESTRTNA. If
the module TESTRTNA is not found in RELOC.LIE, CMS searches the system
library, if it is available.
THE PSERV COMMAND If you want to copy DOS cataloged procedures into CMS files to use, for
example, in preparing job streams for a DOS/VS virtual machine, you can
use the PSERV command:
pserv prep job
This command creates a CMS file on your A-disk; the file is named PREPJOB PROC. To copy a procedure from the procedure library you must
have entered the CMS/DOS environment specifying a disk mode for the
system residence volume. You cannot execute DOS/VS procedures directly from the eMS/DOS However, if you modify a procedure, you can punch it to a
virtual machine that is running a DOS/VSE system, and execute it there.
162 IBM VM/370 CMS Userts Guide
Page of GC20-1819-2 As Updated April 27, 1981 by TNL SN25-0828 For 5748-XE1 THE ESERV COMMAND To use ESERV, the CMSBAM Discontinuous Shared Segment (DCSS) must be
installed (see VMLJ1Q Rlanning Guigg for fUrther information). The CMS/DOS ESERV command is actually an EXEC procedure
that calls the DOS/VSE ESERV utility program. To use the ESERV program,
you first must use the CMS Editor to create a file with a filetype of ESERV that contains the ESERV control statements you want to execute.
For example, if you want to write a de-edited copy of the macro DTFCD
onto your A-disk, you might create a file named DTFCD ESERV, with the
record: PUNCH E.DTFCD
As when you submit ESERV jobs in DOS/VSE, column 1 must be blank.
Then, you must assign SYSIN to the device on which the ESERV source
file resides, usually your A-disk:
assgn sysin a
Then you can enter the ESERV command specifying the filename of the ESERV file:
eserv dtfcd
No other ASSGN commands are required; the CMS/DOS ESERV EXEC makes
default assignments for SYSPCH and SYSLST to disk.
To copy and de-edit macros from a private E sublibrary, issue the ASSGN and nT.HT. commands to identify the library. For to
identify a source statement library named TEST. MACROS on the DOS disk
accessed as the C-disk,
assgn sysslb c
dlbl ijsyssl c dsn test macros (sysslb
The SYSLST output is contained in a CMS file with the same filename
as the ESERV file and a filetype of LISTING; you must examine the LISTING file to see if the ESERV program executed successfully. You can
either edit it (using the CMS editor), or display its contents with the TYPE command: type dtfcd listing The SYSPCH output is contained in a file with the same name as the ESERV file and a filetype of MACRO. If you want to punch ESERV output
to your virtual card punch, make an assignment of SYSPCH to PUNCH. When you use the PUNCH or DSPCH ESERV control statements, CATAL.S, END, or 1* records may be inserted in the output file. When you use the
MACLIB command to add the MACRO file to a CMS macro library, these
statements are ignored. See "Using Macro Libraries" for information on
manipulatinq CMS macro libraries.
creating and
THE DSERV COMMAND You can
private
command
use the
either
use the DSERV command to examine the contents of system or
libraries. If you do not specify any options with it, the DSERV creates a disk file, named DSERV MAP, on your A-disk. You can PRINT or TERM options to specify that the directory list is
to be printed on your spooled printer or displayed at your
section 9. Developing DOS Programs Under CMS 163
Previous Page Next Page