Debug or Run the Program

Describes the steps required to debug or run a program that calls the MVSSPLPB API.

Debug or Run a Program in Enterprise Server

From your Enterprise Developer project

  1. In Enterprise Developer, create a program using either the Enterprise Server Application template, or the Mainframe Subsystem Application template.
  2. In the Enterprise Developer project, create and build a program that accesses the spool files via the MVSSPLPB API.
    Note: The COBOL interface copybook contains no fields specific to any one COBOL dialect; therefore you can compile your program with any dialect you wish.
  3. In Enterprise Server, create an enterprise server instance to run your program.
  4. Associate your enterprise server instance with your Enterprise Developer project.
  5. Debug or run the program in Enterprise Developer.

From Enterprise Server

  1. In Enterprise Developer, create a project using any appropriate project template.
  2. In the Enterprise Developer project, create and build a program that accesses the spool files via the MVSSPLPB API.
    Note: The COBOL interface copybook contains no fields specific to any one COBOL dialect; therefore you can compile your program with any dialect you wish.
  3. Write JCL to execute the program.
  4. In Enterprise Server, create an enterprise server instance to run your program.
  5. In Enterprise Server, execute the JCL.

Debug or Run a Program Outside of Enterprise Server

If your program was not created with either the Enterprise Server Application template or the Mainframe Subsystem Application template:

  1. Set the MFSYSCAT environment variable to the path and filename of the catalog data file, which by default is located in your Enterprise Developer project directory. For example:
    set MFSYSCAT=c:\myproject\catalog.dat
    Note: If your spool control files (e.g. SPLJOB.dat) are held in a different directory to the catalog, you must also set the following environment variable, for example:
    set MVSSPOOLDIR=c:\myproject\<spool-file-folder>
  2. Create and build the program in Enterprise Developer.
  3. Execute or debug the program from the project, or from an Enterprise Developer command prompt.