Pg. of GC20-1819-2 Rev March 30, 1979 by Supp. SD23-9024-1 for 5748-XX8 FILEDEF command using one of the assembler ddna.es before you issue the ASSEMBLE command, you can override the default file definitions.
The ddname for the source input file is ASSEMELE. If you enter:
filedef assemble reader
assemble sample
then the assembler reads your input file from your card reader, and
assigns the filename SAMPLE to the output TEXT and LISTING files. Yeu can use this method to assemble programs directly from DOS sequential
files on DOS disks. For example, to assemble a source file named DOSPROG from a DOS disk accessed as a C-disk, you could enter:
filedef assemble c dsn dosprog (recfm f lrecl 80 assemble dosprog
Again, the name you assign on the ASSEMBLE command may be anything; the
assembler uses this name to assign filenames to the TEXT and LISTING output files. LISTING and TEXT are the ddnames assigned to the SYSLST and SYSPCH output of the assembler. You might issue file definitions to override
these defaults as follows:
filedef listing disk assemble listfile a
filedef text disk assemble textfile a
assemble source When these commands are executed, the output from the assembly of the
file SOURCE ASSEMBLE is written to the disk files ASSEMBLE LISTFILE and ASSEMBLE TEXTFILE. Link-editing Programs In eMS/DOS When the assembler or one of the language compilers executes, the object
module produced is written to a CMS disk in a file with a filetype of TEXT. The filename is always the same as that of the input source file.
These TEXT files (sometimes referred to as decks, although they are not
real card decks) can be used as input to the linkage editor or can be
the target of an INCLUDE linkage editor control statement. You can invoke the CMS/DOS linkage editor with the DOSLKED command,
for example:
doslked test testlib
wbere TEST is the filename of either a DOSLNK or TEXT file (that is, a
file with a filetype of either DOSLNK or TEXT) or the name of a
relocatable module in a system or private relocatable library. TESTLIB indicates the name of the output file which. in CMS/DOS, is a phase
library with a filetype of DOSLIB. When you issue the DOSLKED command, CMS first searches for a file
with the specified name and a filetype of DOSLNK. If none are found, it
searches the private relocatable library, if you have assigned one (you must issue an ASSGN command for SYSRLB and use the ddname IJSSYRL in a
DLBL statement). If the module is still not found, CMS searches all cf
your accessed disks for a file with the specified name and a filetype cf Last, CMS searches the system relocatable litrary, if it is
available (you must enter the eMS/DOS environment specifying the mode
letter of the DOS/VSE system residence if you want to access the system
libraries) '.
172 IBM VM/370 CMS User's Guide
LINKAGE EDITOR INPUT You can place the linkage editor control statements ACTION, PHASE, INCLUDE, and ENTRY in a CMS file with a filetype of DOSLNK. When you
use the INCLUDE statement, you may specify the filename of a CMS TEXT file or the name of a module in a DOS relocatable library: INCLUDE XYZ or you may use the INCLUDE control statement to indicate that the object
code follows: INCLUDE TEXT file)
A typical DOSLNK file, named
following: ACTION REL PHISE PROGMIIN,S INCLUDE SUBI PHISE PROGI,* INCLUDE SUBB When you issue the command:
doslked control CONTROL DOSLNK, might contain the
the linkage editor searches the following for the object files SUBA and SUBB: • A DOS private relocatable library, provided you have issued the ASSGN and DLBL commands to identify it:
assgn sysrlb d
dlbl ijsysrl d dsn ? (sysrlb • Your disks for files with filenames SUBI and SUEB and a filetype
of TEXT • The system relocatable library located on the DOS system residence
volume (if it is available) When you want to link-edit individual CMS TEXT files, you can insert
linkage editor control statements in the file using the CMS editor and
then issue the DOSLKED command:
edit rtnb text
EDIT:
input include rtnc
file
doslked rtnb .ydoslib When the above DOSLKED command is executed, the CMS file RTNB TEXT is
used as linkage editor input, as long as there is no file named RTNB DOSLNK. The ICTION statement, however, is not recognized in TEXT files. You can also link-edit relocatable modules directly fro. a DOS system
or private relocatable library, provided that you have identified the
library. If you do this, however, you cannot provide control statements
for the linkage editor. Section 9. Developing DOS Programs Under CMS 113
Previous Page Next Page