Set up Micro Focus CICS BankDemo for Micro Focus Enterprise Developer 4.0 in Azure
Published Dec 24 2018 09:23 AM 1,741 Views

First published on MSDN on Nov 14, 2018

Authored by Steve Read from AzureCAT

In a previous blog post I outlined the steps to set up Micro Focus Enterprise Server 4.0 and Enterprise Developer 4.0 in Azure and Azure Stack.  As a follow up to that, I’d like to show you how to set up one of the sample applications that comes with Enterprise Developer, the CICS BankDemo application.  If you are not familiar with the acronym CICS, it stands for (Customer Information Control System).  It is the application / transaction platform for many of the online mainframe applications. The BankDemo application is great for learning how Micro Focus Enterprise Server and Developer operates and how to manage and deploy an actual application complete with green screen terminals.  You will be using the Enterprise Developer VM we created in the earlier blog post.  Keep in mind that Enterprise Developer has a complete instance of Enterprise Server on it for Dev/Test purposes.  This is the instance of Enterprise Server you will be using.

Ready, let’s get started. 

First, A word about the databases 
Enterprise Server requires a database for the management of CICS Regions.  The BankDemo application also uses a SQL Server Database – the BANKDEMO database.  For this walk through, you will use SQL Express for both databases.  You will need to download and install it on the Enterprise Developer machine. When installing, select the basic installation.

We will also need SQL Server Management Studio (SSMS) for managing the databases and running a T-SQL script. Download and install it on the Enterprise Developer machine.

Now that you have that squared away, here are the Steps: 

Configure the Windows Environment 
You may recall that on the last blog post you installed Enterprise Developer 4.0 on the VM. Now you need to configure the instance of Enterprise Server that comes with it. Before you do this, you need to make sure you have some additional Windows features installed.

  1. First, login via RDP to the Enterprise Server 4.0 VM you created in the last blog.
  2. Click the Search Icon next to the Start button and type “ Windows Features ”. This will take you to Server Manager Add Roles and Features Wizard. Select the following:
    • Web Server (IIS) Role:
      • Web Management Tools
      • IIS 6 Management Compatibility (select all available features)
      • IIS Management Console
      • IIS Management Scripts and Tools
      • IIS Management Service
  3. World Wide Web Services:
    • Application Development Features:
      • .NET Extensibility
      • ASP.NET
      • Common HTTP Features: Add all available features
      • Health and Diagnostics: Add all available features
      • Security:
        • Basic Authentication
        • Windows Authentication
  4. Windows Process Activation Service and all its children.
  5. Microsoft .NET framework 3.5.1:
    • Windows Communication Foundation HTTP Activation
    • Windows Communication Foundation Non-HTTP Activation
  6. Microsoft .NET framework 4.6:
    • Named Pipe Activation
    • TCP Activation
    • TCP port sharing

  1. Once all the options have been selected, click next to install.
  2. After installing the above Windows features, go to Control Panel > System and Security > Administrative Tools > and select Services . Scroll down and make sure the NetTcpPortSharing, Net.Pipe Listener Adapter and Net.tcp Listener Adapter services are running and set to Automatic .
  3. Next, you need to configure IIS and WAS Support. From the menu locate Micro Focus Enterprise Developer Command Prompt (64 bit) and run as Administrator .
  4. Type wassetup -i and press Enter .
  5. After the script runs, you can close the window.

Configure the local system Account for SQL Server

There are some Enterprise Server processes that need to be able to login to SQL Server and create databases and other objects.  Since these processes use the local system account, you need to give sysadmin authority to that account.

  1. Launch the SSMS and click Connect to connect to the local SQLEXPRESS Server using Windows Authentication. It should be available in the Server Name dropdown.
  2. Go to the Security folder on the left-hand side and select Logins .
  3. Select NT AUTHORITY\SYSTEM and select Properties .
  4. Select Server Roles and check sysadmin .

Create the Bank Demo Database and all its objects

  1. Open Windows Explorer and Navigate to C:\Users\Public\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\DotNet\BankDemo\SQL and copy the contents of BankDemoCreateAll.SQL file into your clipboard.
  2. Now, back to SSMS , right click on the Server and select  “ New Query ”.
  3. Paste the contents of the clipboard into the New Query .
  4. Execute the SQL by clicking Execute from the Command tab above the query.
  5. The query should run with no errors and when it is complete we will have the sample database for the BankDemo application.

Verify the Database Tables and Objects have been created.

  • Right click on the BANKDEMO Database and select Refresh .
  • Expand the Database and select Tables . You should see something like the following.

Now, let’s build the Application in Enterprise Developer

  1. Open up Visual Studio and log in.  You might need to create an Account if you do not already have one.
  2. Under the File menu option, select Open Project/Solution and navigate to C:\Users\Public\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\DotNet\BankDemo and select the sln file.
  3. Take some time to examine the objects. You will see COBOL programs in Solution Explorer with the CBL extension. You will also see CopyBooks (CPY) and JCL. You can go back later to examine what the code is doing. For now, let’s build the project.
  4. Right click on the BankDemo2 Project and select Set as Startup Project . Note : The BankDemo Project leverages HCOSS (Host Compatibility Option for SQL Server) which you are not using for this walk through.
  5. Now in the Solution Explorer , right click and the BankDemo2 Projectselect Build .  The Project should build without any errors. Be sure to examine the Output window. It should look like the image below. Note : Building at the solution level results in errors as HCOSS has not been configured.

Deploy the BANKDEMO application into the Region database

  1. Open an Enterprise developer command prompt (64bit) as Administrator.
  2. Navigate to the %PUBLIC%\Documents\Micro Focus\Enterprise Developer\samples\Mainframe\CICS\DotNet\BankDemo.
  3. At the command prompt, execute bankdemodbdeploy with the parameter to the database to deploy to, e.g. bankdemodbdeploy (local)/sqlexpress .  Be sure to use a forward slash, not a backward one. This script will run for a while.

Create the BANKDEMO Region in Enterprise Administrator for .NET

  1. Open the Enterprise Server for .NET Administration UI.
  2. From the Windows Start menu, choose Micro Focus Enterprise Developer > Configuration > Enterprise Server for .NET Admin to start the MMC snap-in. (For a Windows Server, Micro Focus Enterprise Developer > Enterprise Server for .NET Admin.).
  3. Expand the Regions container in the left pane and then right click on CICS .
  4. Select Define Region to create a new CICS Region called BANKDEMO , hosted in the (local) database.
  5. Supply the database server instance and click Next and enter the region name BANKDEMO .
  6. Next, you need to select the region definition file for the cross-region database.  It is called region_bankdemo_db.config and it is in the C:\Users\Public\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\DotNet\BankDemo directory .
  7. Next click Finish .

Create XA Resource Definitions

  1. In the left pane of Enterprise Server for .NET Administration UI, expand System and then XA Resource Definitions .  This will define how the Region interoperates with Enterprise Server and application databases.
  2. Right click on XA Resource Definitions and select Add Server Instance .
  3. Select the Database Service Instance from the drop down.  It will be the local machine SQLEXPRESS.
  4. Now select the instance from under the XA Resource Definitions (machinename\sqlexpress) container and click Add .
  5. Select Database XA Resource Definition and enter BANKDEMO for the Name and Region .
  6. Click the ellipses (…) to bring up the Connection String wizard and enter (local)\SQLEXPRESS for the Server Name, BANKDEMO for the Database name and make sure to select Windows Authentication .
  7. Finally test the connection.

Start the BANKDEMO Region

  1. VERY IMPORTANT - Navigate back to the BANDEMO CICS Region under the Regions Container and select Edit Region Startup File from the Actions pane on the right.  You need to tell the Region to use the XA Resource Definition you just created.  Scroll down to the SQL properties and enter bankdemo for the XA resource name or use the ellipse to select it.
  2. Click the Save icon to save the edit.
  3. Now, right click on the BANKDEMO CICS Region in the Console pane and select Start/Stop Region .
  4. This will bring up the Start / Stop dialog in the middle pane.  At the bottom select Start .
  5. It might take a few seconds for the Region to start. The Region should start with no errors.

Create a Listener

You need to create a listener for the TN3270 sessions that will access the BANKDEMO application.

  1. In the left hand pane, expand Configuration Editors and select Listener .
  2. Click the Open File icon and select the seelistener.exe.config file.  This is the file we will be editing and is loaded every time Enterprise Server starts.
  3. You should see two Regions previously defined (ESDEMO and JCLDEMO).  We need to create a new one for BANKDEMO.
  4. Right click on Regions and Select Add Region .
  5. Select the BANKDEMO Region .
  6. Next we need to Add a Channel.  Right click on the BANKDEMO Region and select Add Channel to select a TN3270 Channel .
  7. Enter TN3270 for the Name and 9024 for the Port (the ESDEMO application is already using 9230 so you need to use a different port).
  8. Now click the Save icon to save the file.
  9. Next, click the Start icon to start the Listener.

Configure Rumba to access the BANKDEMO application

The final thing you need to do is configure a 3270 session via Rumba (a 3270 emulator) to access the BANKDEMO application via the Listener we just created.

  1. From the Start Menu launch the Rumba Desktop.
  2. Under Connections menu item,  select TN3270
  3. Click Insert and enter for the IP address and 9024 for the User Defined port.
  4. Now click Connect at the bottom of the dialog.
  5. You should be presented with a black CICS screen.
  6. Now enter "bank" and you should see the initial 3270 screen for the BANKDEMO application.
  7. Now enter B0001 for the User Id and anything for the Password and you will be taken to the first screen BANK20.

Congratulations, you are now running a CICS application in Azure using Micro Focus Enterprise Server.  Next, we will look at running the Enterprise Server Hello World Docker Demonstration.

Send me an email at if you have any questions.

AzureCAT Guidance  
"Hands-on solutions, with our heads in the Cloud!"

Version history
Last update:
‎Apr 28 2020 12:25 PM
Updated by: