17 type *
* SAMPLE OF LINEMODE RIGHT TEST CSECT BALR 12,0 USING *,12 ST 14,SAV14 Tft FLAG,RUNON BCR 1,14 WRTERM 'TESTING ••• , L 14,SIV14 BR 14 SAV14 DS F WKAREA DS 3D
FLAG DS X RUNON EQU X'SO' RUNOFF EQU X'40' RUNMIX EQU X'20' END EOF: file
18 RESERIALIZATION SUPPRESSED Ri 19 type test assemble
* SAMPLE OF LINEMODE RIGHT ABCOO010 TEST START X'20000' ABCOO020 BILR 12,0 ABCOO030 USING *,12 IBCOO040 ST 14,SAV14 ABCOO050 Tft FLAG,RUNON 00053 BCR 1,14 00055 TYPE 'TESTING ••• ' ABCOO060 L 14,SIV14 ABCOO070 BR 14 ABCOOOSO S1V14 DS F ABCOO090 WKAREA DS 3D lBC00100 FLAG DS X lBC00110 RUNON EQO X'SO' ABC00120 RONOFF EQO X'40' ABC00130 RUNftIX EQO X'20' 00135 END lBC00140 17 Use the TYPE subcommand to display the file.
18 When you issue the FILE subcommand to write the file onto disk, the editor issues
the message RESERIALIZlTION SUPPRESSED to indicate that it is not going to update
the line numbers, so that the current line numbers match the line numbers as they
existed when the SAVE subcommand was issued.
19 If you want to see how the file exists on disk, use the CMS TYPE command to display
the file. Note that the lines inserted after the SAVE subcommand do not have the
initial ABC characters, and that they retain the line numbers they had when they
were inserted.
364 IBM VM/370 eMS Oser's Guide
Sample Terminal Session for OS Programmers
The following terminal session shows how you might create an assembler language program
in eMS, assemble it, correct assembler errors, and execute it. All the lines that appear
in lowercase are lines that you should enter at the terminal. Uppercase data represents
the system response that you should receive when you enter the command.
The input data lines in the example are aligned in the proper columns for the
assembler; if you are using a typewriter terminal, you should set your terminal's tab
stops at columns 10, 16, 31, 36, 41, and 46, and use the Tab key when you want to enter
text in these columns. If you are using a display terminal, when you use a PF key defined
as a tab, or some input character, the line image is expanded as it is placed in the
screen output area.
There are some errors in the terminal session, so that you can see how to correct
errors in eMS. 1 edit ostest assemble NEW FILE:
EDIT:
input INPUT: dataproc csect
print
space rO egu r1 egu r2 egu r10 equ r12 equ r13 egu r14 egu r15 egu space
stm
balr
using
st
la
st
lr
space
nogen
o
1
2 10 12
13
14
15
r14,r12,12(r13) save caller's regs r12,0 establish
*,r12 addressability
r13,savearea+4 store addr of caller's savearea
r15,savearea get the address of my savearea
r15,8(r13) store addr in caller's savearea
r13,r15 save addr of my savearea *open files and check that they opened okay
checkout
space
la
open
using
la tm bnz
la
b
la tm bnz
la
b r3,0 initially set return code
(indata,outdata, (output» open files
ihadcb,r10 get dsect to check files
r10,indata prepare to check output file
dcboflgs,x'10' everything ok?
checkout .,.continue r3,100 set return code
exit ••• exit
r10,outdata check output file
dcboflgs,x' 10' is it okay?
process r3,200 set return code
exit
1 The EDIT co.mand is issued to create a file named OSTEST ASSEMBLE. Since the file
does not exist, the editor indicates that it is a new file and you can use the INPUT subcommand to enter input .ode and begin entering the input lines. Sample Terminal Session for as Programmers 365
Previous Page Next Page