Compiling under TSO

Under TSO, you can use TSO commands, command lists (CLISTs), REXX execs, or ISPF to compile programs using traditional MVS data sets. You can use TSO commands or REXX execs to compile programs using z/OS® UNIX files.

About this task

With each method, you need to allocate the data sets and request the compilation:

Procedure

  1. Use the ALLOCATE command to allocate data sets.

    For any compilation, allocate the work data sets (SYSUTn) and the SYSIN and SYSPRINT data sets.

    If you specify certain compiler options, you must allocate other data sets. For example, if you specify the TERMINAL compiler option, you must allocate the SYSTERM data set to receive compiler messages at your terminal.

    You can allocate data sets in any order. However, you must allocate all needed data sets before you start to compile.

  2. Use the CALL command at the READY prompt to request compilation:
    
    CALL 'IGY.V6R3M0.SIGYCOMP(IGYCRCTL)'
    

Results

You can specify the ALLOCATE and CALL commands on the TSO command line, or, if you are not using z/OS UNIX files, you can include them in a CLIST.

You can allocate z/OS UNIX files for all the compiler data sets except the SYSUTx utility data sets and the SYSLIB libraries. ALLOCATE statements have the following form:


Allocate File(SYSIN) Path('/u/myu/myap/std/prog2.cbl')
Pathopts(ORDONLY) Filedata(TEXT)

Related references  
Data sets used by the compiler under z/OS