March 30, 1979
4
EDIT: Smark 5 savel input
EDIT:
6
7 INPUT: eofaddr=eodad,recsize=80
outfile dtfdi modname=shrmod,ioarea1=buffer,devaddr=syspch,
EDIT: Smark savel input
EDIT: INPUT: shrmod
endpgm
EDIT:
file
R;
recsize=81
dimod typefle=output
equ *
end
8 edit getmacs eserv NEW FILE:
EDIT:
tabs 2 72
input INPUT: 9 punch open,close,get,put,dimod,dtfdi 10 4
5
6
7
8
9 10 EDIT:
file R; assgn sysipt a R- ,
eserv getmacs R; Since the DTFDI macro statement takes up more than one line, you have to enter a
continuation character in column 72. To do this, you can enter a null line to return
to edit mode and execute the SMARK edit macro, which places an asterisk in column
72. If the SMARK edit macro is not on your system, you will have to enter a
continuation character some other way. (See "Entering a Continuation Character in
Column 72" in "Section 5. The CftS Editor.")
Before continuing to enter input lines, the EDIT subcommand SAVE is issued to write
what has already been written onto disk. The CP logical line end symbol (I) separates the SAVE and INPUT subcommands.
Another continuation character is needed. A null line returns you to edit mode. You may want, at this point, to proofread your
input file before issuing the FILE subcommand to write the ASSEftBLE file on disk.
To obtain the macros you need to assemble this file, use the editor to create an ESERV file. By setting the logical tabs at columns 2 and 72, you can protect
yourself from entering data in column 1. PUNCH is an ESERV program control statement that copies and de-edits macros from source statement libraries; in this case, the system source statement library. The
output is directed to the SYSPCH device, which the CMS/DOS ESERV EXEC assigns by
default to your A-disk. You must assign the logical unit SYSIPT before you invoke the ESERV command. GETftACS is the filename of the ESERV file containing the ESERV control statements. 370 IBM V8/370 CMS User's Guide
Pg. of GC20-1819-2 Rev March 30, 1979 by Supp. SD23-9024-1 for 5748-118 11 listfile getaacs * GETMACS ESERV A1 GETMACS MACRO A1 GETMACS LISTING A1
R;
12 .aclib gen dosmac getmacs
R;
erase getmacs *
R;
13 global maclib dosmac
R;
14 assemble dostest
15
16
*
* ASSEMBLER DONE DOS00040 4 LA 13,SAVEAREA IF0188 SAVEAREA IS AN UNDEFINED SYMBOL DOS00110 35 EOJ IF0078 UNDEFINED OP CODE NUMBER OF STATEMENTS FLAGGED IN THIS ASSEMELY R(00008) ;
edit dotest assemble
EDIT:
locate /buffer/ BUFFER DC CL80" input savearea ds 9d
file
R;
17 edit eoj eserv NEW FILE:
18
EDIT:
i punch eOj file
R;
listio sysipt SYSIPT DISK R;
eserv eoj
R; A 2
11 After the ESERV EXEC completes executioD# you have three files. You may want to examine the LISTING file to check the ESERV program listing. The MACRO file
contains the punch (SYSPCH) output.
12 The MACLIB command creates a macro library named DOS!AC !ACLIB. Since the MACLIE command completed successfully, you can erase the files GETMACS ESERV. GET!ACS LISTING, and GET!ACS MACRO; an asterisk in the filetype field of the ERASE command indicates that all files with the filename ef GETMACS should be erased.
13 Before you can invoke the assembler, you have to identify the macro library that
contains the macros; use the GLOBAL command, specifying DOSMAC MACLIE. 14 The ASSEMBLE command invokes the VM/370 assembler to assemble the source file; the
asterisks (*) indicate the CMS blip character, which you mayor may not have made
active fer your virtual machine.
15 The assembler displays errors encountered during assembly. Depending on how
accurately you copied the program in this sample session, you mayor may not receive
some of these messages; you may also have received additional messages.
16 To correct the first error, which was the omission of a DS statement for SAVEAREA, edit the file DOSTEST ASSEMBLE and insert the missing line.
17 The second error indicates that the macro EOJ is not available, since it was not
copied fro. the source statement library. Create another ESERV file to punch this macro. 18 Use the LISTIO to check that SYSIPT is still assigned to your A-disk, so
that you do not have to issue the ASSGN command again. Then issue the ESERV command again, this time specifying the filename EOJ. Sample Terminal Session for DOS Programmers 371
Previous Page Next Page