Previous Topic Next topic Print topic


Run the Application

If you were setting up your CICS environment for production, you would now create a PCT entry to associate the name of your program with a CICS transaction id. For this example however, we will use the Micro Focus generic run program CRUN which is useful for testing, and allows you to execute programs on an as-required basis without changing CICS tables.
  1. Start your terminal emulator and clear the screen. Note that you might need to configure your terminal emulator to communicate with the listener prot you previously set up, and to connect to the right IP address, which is found on the Home page of Enterprise Server Administration, in the Communications Processes cell for your server.
  2. Enter CRUN progname where progname is the name of your program. This invokes the CICS application that submits the JCL via the CICS SPOOLOPEN, SPOOLWRITE and SPOOLCLOSE commands. If you used the example program provided, your output screen will display the message: Test run OK. Upon invocation of the spool service, a message is also sent to the output console, similar to:
    Spool service created, region SSTMDEMO, process-id = 8180 10:11:12
  3. You can examine the spool output by clicking Control and then ES Monitor & Control when on the Enterprise Server Administration screen for your region. Then select JES from the Resources list in the left-hand column, and click Spool.
Previous Topic Next topic Print topic