EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 338

Radio Shack TRS-80 Model 4
418 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Practical Examples
Of
TRSDOS
JeL
Files
It
is
virtually impossible to show
all
the many uses of JCL files.
We give
you
two examples of how you can make your day-to-day
TRSDOS operations even more efficient using JCL files.
1)
This example shows how
to
SYSRES system modules using a JCL
file. The modules to
be
resided are
2,
3,
and
10.
These modules have
to
be
resident
in
memory
to
perform a backup
by
class between two
non-system diskettes
in
a two-drive system.
The JCL file
to
SYSRES these modules may look something like this:
BURES/JCL - JCL
used
to
SYSRES
modules
2,
3,
an
d 10
SYSTEM
(SYSRES=2
SYSTEM
(SYSRES=3
SYSTEM
(SYSRES=10
end
of
BURES/JCL
When executed, this JCL file causes the system modules
2,
3,
and 10
to
be
resided
in
high memory. Because this JCL uses
no
labels or
compilation macros, the compilation phase can
be
skipped.
2)
This example shows how
to
back
up
a diskette using a JCL file.
A minimum of three drives are required. Drive
0 must contain a
system diskette with the JCL file. Drive 1 contains the source diskette.
Assume that the source diskette's name is MYDISK and its master
password
is
PASSWORD. Also, assume that it
is
40 track, and
double density. Drive 2 contains the destination diskette.
The JCL file
to
perform the backup may look something like this:
DUPDISK/JCL
-
DisK
duplication
JCL
IIPAUSE
Source
in
1,
Dest.
in
2,
(ENTER)
IAlhen
readY
forlllat
:2
(nallle="
fI1y
dist,"
,9=n
,abs)
I I PA
USE
for
III
a
tOt,?
(ENTER)
i f
yes,
(BREAK)
i f n 0
bact,up
: 1
:2
end
of
bacKup
-
will
now
restart
JCL
do
*
The second line of the JCL causes the computer
to
pause until the
(ENTER)
key
is
pressed. This allows you to insert the proper diskette
into Drives 1 and
2.
Once you insert the proper diskettes, press
(ENTER)
and the third line of the JCL is executed.
The format line passes the NAME parameter to the format utility. Note
that the diskette name, and diskette password of the destination
A-33

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals