Pg. of GC20-1819-2 Rev March 30, 1979 by Supp. SD23-9024-1 for 5748-XX8 14 load ostest
R;
start DMSLI0740I EXECUTION BEGINS ••• 15 DMSSOP036E OPEN ERROR CODE '04' ON 'OUTDD '
R (00200) ; 16 filedef
INDD DISK TEST DATA A1 OUTDD PUNCH R;
17 filedef outdd punch (lrecl 80 recfm f
R;
18 #cp query reader all NO RDR FILES 19 load ostest (start DMSLI0740I EXECUTION BEGINS ••• 20 PUN FILE 6198 TO BILBO COpy 01 NOHOLD R;
21 fi indd reader
R;
fi outdd disk new osfile a4 (recfm fb block 1600 lrecl 80 R;
22 listfile new osfile a4 (label DMSLST002E FILE NOT FOUND. R (00028) ;
23 run ostest
24
14
15
16
17
18
19 20 21
22
23
24 EXECUTION BEGINS ••• *
R;
listfile new osfile a4 (label
FILENAME FILETYPE FM FORMAT LRECL RECS fLOCKS NEW OSFILE A4 F 1600 5 10 R;
DATE TIME LABEL
9/30/75 8:26:14 PAT198 The LOAD command loads the TEXT file produced by the assembly into virtual storage.
The START command begins program execution. An open error is encountered during program execution. The CMS ready message
indicates a return code of 200, which is the value placed in it by your program.
The FILEDEF command, with no operands, results in a display of the current file
definitions in effect.
Error code 4 on an open request means that no RECFM or LRECL information is
available. An examination of the program listing would reveal that the DCB for OUTDD does not contain any information about the file format; you must supply it on
the FILEDEF command. Re-enter the FILEDEF command. You can use the CP QUERY command to determine whether there are any files in your card reader. It should be empty; if not, determine whether they might be files you
need, and if so, read them into your virtual machine; otherwise, Furge them. Use the LOAD command to execute the program again; this time, use the START option
of the LOAD command to begin the program execution.
The PUN FILE message indicates that a file has been transferred te yeur virtual card
reader. The ready message indicates that yeur program executed successfully.
For the next execution of this program, you are going to read the file back out of your card reader and create a new CMS disk file, in as simulated data set format.
FI is an acceptable system truncation for the command name, FILEDEF. The LISTFILE command is issued to check that the file NEW OSFILE does not exist.
The RUN command (which is an EXEC procedure) is used instead of the LOAD and START commands, to load and execute the program. The ready message indicates that the
program completed execution.
The LISTFILE command is issued again, and the file NEW OSFILE is listed. (If you issue another CP QUERY READER command, you will also see that the file is no longer
in your card reader.)
368 IBM VM/370 CMS User's Guide
Pg. of GC20-1819-2 Rev March 30, 1979 by Supp. SD23-9024-1 for 5748-118 Sample Terminal Session for DOS Programmers
The following terminal session shows how you might create an assembler language program
in CMS, 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 or an
input character defined as a tab, the line image is expanded as it is placed in the
screen output area.
Note: The assembler, in CMS, cannot read macros from DOS/VSE libraries. This sample terminal session shows how to copy macros from DOS/VSE libraries and create CMS MACLIB
files. ordinarily, the macros you need should already be available in a system MACLIB file. You do not have to create a MACLIB each time you want to assemble a program.
There are some errors in the terminal session, so that you can see how to correct
errors in CMS. 1 cp link dosres 130 130 rr linkdos DASD 130 LINKED R/O R;
access 130 z
Z (130) RIO - DOS R;
2 set dos on z R;
3 edit dostest assemble NEW FILE:
EDIT:
input INPUT: begpgm csect
balr 12,0 using *,12
la 13,savearea
open infile,outfile
loop get infile
put outfile
b loop
eodad equ *
close infile,outfile
eoj
eject
dc CL80" buffer
infile dtfdi modname=shrmod,ioarea1=buffer,devaddr=sysipt,
1 Use the CP LINK command to link to the DOS system residence volume and the ACCESS command to access it. In this example, the system residence is at virtual address 130 and is accessed as the Z-disk.
2 Enter the eMS/DOS environment, specifying the mode letter at which the DOS/VSE system residence is accessed.
3 Use the EDIT command to create a file named DOSTEST 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 mode and begin entering the input lines. Sample Terminal Session for DOS Programmers 369
Previous Page Next Page