To execute the JCL, you need to run the application in an instance of the Micro Focus Enterprise Server (sometimes abbreviated to Enterprise Server). This demonstration includes a pre-configured enterprise server instance called Bankdemo which you need to import in Enterprise Server and start before you execute the Bankdemo application.
To import the definition of the Bankdemo logical server (LSER):
If the window is not visible, click (or ).
) in the Server Explorer toolbar to pin the window to the IDE window.
This opens the Enterprise Server Common Web Administration (ESCWA) page in a browser outside of the IDE.
You can see that the BANKDEMO server appears in the list of Directory Servers. You need to start it before you can execute the online Bankdemo application.
Ensure your application is associated with the BANKDEMO server:
Configure the IDE to start the associated BANKDEMO server automatically as follows:
These are the steps to start the server manually, and are included for completeness. You do not have to start the server manually, as you have configured the IDE to start the server automatically.
You may receive a Windows Security Alert blocking the MF Communications process. Click Allow access.
See the Output window for the messages from the server log that show that the server has started.
You are now ready to execute the JCL.
The JCL provided in your demo causes the COBOL application to read a file, sort the data and produce a report. The .jcl file, ZBNKSTMT.jcl, is in the Bankdemo project. To submit this job:
Alternatively, you can right-click the file in Solution Explorer, and select Submit JCL
You can also see the job details in the job spool window that automatically opens inside the IDE. You can also open this view from within Server Explorer.
You can open the catalog and the spool directly from Server Explorer.
To view the catalog:
Alternatively, in Solution Explorer, right-click the BankDemo project, and click Enterprise Server > Show Catalog.
This opens the catalog:
To view the spool:
Alternatively, in Solution Explorer, right-click the Bankdemo project, and click Enterprise Server > Show Spool. This might still show the details of the submitted JCL job.
(Home) in the Spool window, if you do not see the list of jobs and you can only see the job details.
(Filter) on the Home page of the Spool window to set some filters.
This opens a page with a variety of information for the job progress, showing return condition code (Cond.) of 0000:
In the DD Entries section, there are:
Again, if you cannot see your SYSOUT files, make sure you have selected Printed in the filter.
You can now start to look at how to run the online application.