.%08%08
This
comment
is
positioned
at
the
second
tab
stop,
IIPAUSE
%0A%0A%0A
This
line
appears
3
lines
down
If
you place the character BEFORE the period, TRSDOS does not
recognize it
as
a comment line
and
the JCL aborts.
If
you place the character AFTER the macro, the //PAUSE is
displayed and the remaining message line
is
displayed 3 lines lower
on
the screen.
Using the tab
and
Iinefeed characters
in
this manner can sometimes
help
to
improve the readability of the messages displayed during JCL
execution.
Using
TRSDOS
JeL
To Interface With
Applications
Programs
This appendix describes how
to
use JCL
to
start up and control your
applications programs.
Two languages are discussed: BASIC
and
Z-80 assembly.
Interfacing With BASIC
A JCL file is the perfect method to interface between the operating
system and the BASIC language. JCL can be used to create
procedures that require only the inserting of a diskette to start up a
program. Additionally, you can utilize the features of JCL from within a
BASIC program.
Examples
To use a JCL file
to
initiate
an
automatic start-up of a BASIC
program, you can use the AUTO library command to execute a JCL
file.
Assuming the JCL file
is
named BAS/JCL, issuing the command:
AUTO
DO
BASI JCL
(ENTER)
automatically executes the desired BASIC program every time the
computer is booted with the AUTOed system disk.
In
order to execute a BASIC program from a JCL file,
layout
the JCL
file as follows:
1.
Establish any necessary drivers, filters, or other TRSDOS options.
2.
Enter BASIC with any necessary parameters (such as memory
size and number of files).
3.
RUN
the BASIC program.
A-3D