2
process
exit
space
equ
get
lr
put
b
space
equ
close
1
lr
11m br
space
savearea dc
indata dcb
EDIT:Smark 3 savel input
EDIT:
4INPUT: outdata
EDIT:
file
R;
dcb
dcbd
space
end
*
indata
r2,r1
outdata,(2)
process
*
read a recordfrom input file
save address of recordmove it to output
continue until end-of-file(indata"outdata) close files
r13,savearea+4 addr of caller's save area
r15,r3 load return code
r14,12(r13) get return address
rO,r12,20(r13) restore regs
r14 bye••• 18f'0'
ddname=indd,aacrf=gl,dsorg=ps,recfm=f,lrecl=80,
eodad=exit
ddname=outdd,macrf=pm,dsorg=ps
5 globalmac lib osmacro R;
6 assemble ostest
*
*
*
*
*
*
*
2Since the DCB 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 editmode and execute the SMARK edit macro, which places an asterisk in column
72. If theSMARK edit macro is not on your system, you viII have to enter a
continuation character some otherway. (See "Entering a Continuation Character in
Column 72" in"Section 5. The CMS Editor.")
3 Before continuing to enter input lines, the EDIT subcommandSlVE is issued to write
what has already been written onto disk. TheCP logical line end symbol (I) separates the SAVE and INPUT subcommands.
4 A null line returns you to editmode. You may wish, at this point, to proofread
your input file before issuing the FILEsubcommand to write the ASSEMBLE file onto
disk.
5Since this assembler program uses OS macros, you must issue the GLOBAL command to
identify theCMS macro library, OS MACRO 8ACLIB, before you can invoke the assembler. 6 The ASSEMBLE command invokes the V8/370 assembler to assemble the source file; the
asterisks (*) indicate theCMS blip character, which you mayor may not have made active for your virtual machine.
366IBM VM/370 CMS User's Guide
process
exit
space
equ
get
lr
put
b
space
equ
close
1
lr
1
space
savearea dc
indata dcb
EDIT:
EDIT:
4
EDIT:
file
R;
dcb
dcbd
space
end
*
indata
r2,r1
outdata,(2)
process
*
read a record
save address of record
continue until end-of-file
r13,savearea+4 addr of caller's save area
r15,r3 load return code
r14,12(r13) get return address
rO,r12,20(r13) restore regs
r14 bye
ddname=indd,aacrf=gl,dsorg=ps,recfm=f,lrecl=80,
eodad=exit
ddname=outdd,macrf=pm,dsorg=ps
5 global
6 assemble ostest
*
*
*
*
*
*
*
2
continuation character in column 72. To do this, you can enter a null line to return
to edit
72. If the
continuation character some other
Column 72" in
3 Before continuing to enter input lines, the EDIT subcommand
what has already been written onto disk. The
4 A null line returns you to edit
your input file before issuing the FILE
disk.
5
identify the
asterisks (*) indicate the
366