Compiling a Program
If you are using a TSO Program Product compiler and prompter, you can
ignore this section.
The prompter allocates data sets and calls the
compiler for you.
You can use the CALL command to invoke the compiler that will compile
your source program.
Before you use the CALL command to invoke the
compiler you must use ALLOCATE commands to allocate all the data sets
required for compilation.
Data set allocation is discussed in
-Allocating a Data Set- in the section "Entering and Manipulating Data".
The data sets required by your compiler are described in the Terminal
User's Guide.
.
You must give the data set name of your compiler in the CALL command.
The data set names are shown in Figure 9 (For the example, the compilers
are stored in LINKLIB.)
r--------------------------------------T-------------------------------,
I Compil er
IDa ta Set Name
I
~---------~--------------~-------------+-------------------------------~
IAssembler F
I 'SYS1.LINKLIB(IEUASM) ,
I
IAmerican National standard COBOL
I
'SYS1.LINKLIB(IKFCBLOO) ,
I
IFORTRAN E
I
'SYS1.LINKLIB(IEJFAAAO) ,
I
IFORTRAN G
I'SYS1.LINKLIB(IEYFORT),
I
IFORTRAN H
I
'SYS1.LINKLIB(IEKAAOO) ,
I
IPL/I F
I'SYS1.LINKLIB(IEMAA),
I
L ______________________________________
~
_______________________________
J
Figure
9.
Data Set Names of the compilers
Note that the data set name is a fully qualified name and must be
enclosed in apostrophes.
For example, if you want to use the FORTRAN H
compiler, enter:
READY
call ·sys1.linklib(iekaaOO)'
In addition to the compiler's data set name,,, you can enter the
compiler options you desire in the CALL command.
These options are
those specified with the PARM parameter of the EXEC statement when you
are running your program directly under the operating system rather than
through TSO.
For example, if you want to use the MAP, NOlO .. and OPT=2
options of the FORTRAN H compiler, enter:
READY
call·sys1.linklib(iekaaOO)· 'map noid opt=2'
Any messages and other output produced by the compiler will appear in
your listing after the CALL command.
Once the compiler completes its
processing you receive the READY message.
You can then free any
allocated data sets you no longer need,.
Figure 10 shows the commands required to create a COBOL source
program, allocate the eight data sets required for compilation, call the
COBOL compiler, and free all allocated data sets except the one that
contains the compiled program (object module).
It is assumed you are
using your user identification as part of all data set names except
SYS1,. COBLIB.
Programming at the Terminal
65