EasyManuals Logo

IBM Professional Series User Manual

IBM Professional Series
421 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
Page #131 background image
Writing EXECs
What
is
an
EXEC?
An
EXEC
is
a file with a filetype
of
EXEC.
It
contains a series
of
commands
that
are all
executed when you enter the filename of the
EXEC
file.
An
EXEC
can help you by simplifying routine tasks. How
does it do this?
You have learned that you sometimes need
to type several commands to do a task.
If
you find yourself
often keying in the same sequence of commands during your
terminal sessions, you can create an
EXEC
that contains the
commands you would otherwise need to type. All these
commands are executed when you enter the filename
of
the
EXEC.
An
EXEC
can also
"prompt"
(display a message),
asking you to enter information that the system needs to
complete the task you've given it.
In this section, you'll learn how to create simple EXECs.
Y ou'lliearn some of the features
of
the
EXEC
2 language,
which has special words that are used to tailor your
EXECs
to meet your needs.
More information
on
EXECs
can
be
found in the
VM
/
SP
EXEC
2 Reference and the
VM
/
SP
CMS
User's Guide.
An
EXEC to Print a File
You can use the PRINT command to print one copy
of
a file.
But if you wanted five copies, you'd first have
to
enter a
SPOOL PRINT
COpy
5 command. Your first
EXEC
will
contain these two commands.
An
EXEC
can have any
filename (up
to
eight letters long) and must have a filetype of
EXEC. Let's call this file
MYPRINT
EXEC
A.
Enter:
xedit
myprint
exec
Now enter
an
INPUT command and type these lines. (In the
PRINT command, you can use the file label of one
of
your
files instead of the one shown beloW.)
&trace
off
cp
spool
print
copy 5
5-40
VM/PC
Users Guide

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM Professional Series and is the answer not in the manual?

IBM Professional Series Specifications

General IconGeneral
BrandIBM
ModelProfessional Series
CategorySoftware
LanguageEnglish

Related product manuals