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 ).This opens the Enterprise Server Administration page in the IDE.
This adds the path to the Selected source directory containing server data to restore field.
You can see the Bankdemo server appears in the list of 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.
After several seconds, the server status on the Enterprise Server Administration page also changes to 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
The Output window also includes a link for the job output, which you can open by pressing and holding CTRL, and clicking the link with the mouse.
You now need to check the results of submitting the job.
You can open the catalog and the spool directly from within the IDE.
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 shows the spool with the Complete button selected to see a list of all jobs in the completed queue. Your job is the last in the list.
This opens a page with a variety of information for the job progress, showing return condition code (COND) of 0000:
In the details, there are:
Again, if you cannot see your SYSOUT files, click Printed on the Spool page.
You can now start to look at how to run the online application.