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 tab is not visible, click Micro Focus > Server Explorer and then click OK.
. Select
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.
You can check the Console view to ensure that the BANKDEMO server has started successfully.
Check the Console view as it now shows the messages from the server log:
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 Sources > jcl folder of the project. To submit this job:
Check the Console view in the Eclipse IDE to see that this job has been submitted.
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:
This opens the catalog.
To view the 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.