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 HFS files.
With each method, you need to allocate the data sets and request the compilation:
You can specify the ALLOCATE and CALL commands on the TSO command line, or, if you are not using HFS files, you can include them in a CLIST.
You can allocate HFS 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