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 #133 background imageLoading...
Page #133 background image
Now, the MYPRINT
EXEC
is
good for printing five copies
of the file specified in the PRINT command. But what if you
want three copies, not five?
And
what if you want a
different file printed? Do you have to write a different
EXEC
for every file? No, you can make a few changes in
the MYPRINT
EXEC
so that you can use
it
to
print any
number of copies of any file.
Enter
XEDIT MYPRINT
EXEC
and make
the
following
changes:
&TRACE
OFF
CP
SPOOL
PRINT
COPY
&1
PRINT
&2
&3
You changed the number
of
copies to
&1,
the filename to
&2,
and the file type to
&3.
These numbers preceded by an ampersand (&) are a signal to
the
EXEC
processor
that
they will be replaced with values
that you type in. Now when you enter
MYPRINT, you will
also type real values that will replace
the
&1,
&2,
and
&3.
The first value you supply must be number
of
copies you
want printed, the second value must be the filename, and the
third value must be the filetype.
Let's see how this works.
Enter
a
FILE
command. Then
enter a command like this, using the filename and file type of
one of your files:
myprint
3 workl
file
The
EXEC
processor takes the values you type and assigns
them to
&1, &2,
and
&3,
in that order.
This command
CP
SPOOL
PRINT
COPY
&1
PRINT
&2
&3
Becomes this command
for this execution:
CP
SPOOL
PRINT
COpy
3
PRINT
WORKI
FILE
You can use a different number and a different filename and
filetype each time you enter
MYPRINT. You must specify
these values in the order shown, because the first value you
5-42
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