Compiling a Enterprise PL/I program on an HFS or zFS file system

If you are compiling and launching Enterprise PL/I programs on an HFS or zFS file system, you must do one of the following:

  • Compile and launch the programs from the same location, or
  • specify the full path name when you compile the programs.

By default, the Enterprise PL/I compiler stores the relative path and file names in the program object. When you start a debug session, if the source is not in the same location as where the program is launched, z/OS® Debugger does not locate the source. To avoid this problem, specify the full path name for the source when you compile the program. For example, if you execute the following series of commands, z/OS Debugger does not find the source because it is located in another directory (/u/myid/mypgm):

  1. Change to the directory where your program resides and compile the program.
    cd /u/myid/mypgm
    pli -g "//TEST.LOAD(HELLO)" hello.pli
  2. Exit UNIX System Services and return to the TSO READY prompt.
  3. Launch the program with the TEST run-time option.
    call TEST.LOAD(HELLO) 'test/'

z/OS Debugger does find the source if you change the compile command to:

pli -g "//TEST.LOAD(HELLO)" /u/myid/mypgm/hello.pli

The same restriction applies to programs that you compile to run in a CICS® environment.