Set Up AMB and COBOL Projects

Guides you through the process of creating, populating, and configuring an AppMaster Builder project, and creating an Enterprise Developer COBOL project in which to store generated source code.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

You need an AppMaster Builder project in which to develop your application, and an Enterprise Developer project in which to compile and run the application. Here, you create both projects, and populate the AMB project with the demonstration application files needed to complete the tutorial.

Set up the AMB BLDRAPPL project

When you create an AppMaster Builder project, AMB creates a directory structure containing the files required to develop an application. Each project subdirectory contains specific files and file types. For this tutorial, you create the project and then copy the demonstration files into the new directory structure, overwriting the existing files. Following that, you need to specify the project path in your AppMaster Builder preferences.

Create the BLDRAPPL project
  1. With the AppMaster Builder perspective active, click Admin > Project > Create.
  2. In the Administrator Password field, type ambadmin; then click OK.
    Important: This tutorial assumes you can use the default AMB administrator password. However, you might be required to supply an alternative password if it has been changed.
  3. In the Qualifier field, type the path to your Eclipse workspace.
  4. In the Project field, replace the default text with AMB to represent AppMaster Builder.
  5. In the Group field, replace the default text with BLDRAPPL to represent the application name.
  6. Click Create. A message appears in the dialog header indicating that the project was created.
  7. Click Exit.
Copy demonstration files
  • Using Windows File Explorer, or at a command prompt, copy all of the subdirectories under %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\AMB-Main\Mainframe\AMB\Classic to the AMB\BLDRAPPL subdirectory of your Eclipse workspace, overwriting the contents. For example, at a command prompt from the AMB\BLDRAPPL subdirectory, enter:
    xcopy "%PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\AMB-Main\Mainframe\AMB\Classic" /s/y
Set the project path
  1. From the Eclipse IDE, click Window > Preferences.
  2. Expand Micro Focus; then click AppMaster Builder.
  3. In the Project path field, type in or browse to and select the AMB\BLDRAPPL subdirectory of your Eclipse workspace, and then click Apply and Close.
    Note: If the Preference Recorder dialog box appears, click OK.

Create an Enterprise Developer COBOL project

You need an Enterprise Developer project in which to store the code generated by AppMaster Builder.

  1. From the AppMaster Builder perspective, click AppMaster Builder Preferences AppMaster Builder preferences page.
  2. On the AppMaster Builder Preferences page, check Compile in COBOL Project.
  3. Click New.
  4. In the Project name field, type COB_BLDRAPPL; then click Finish.

    Enterprise Developer creates the project in your default Eclipse workspace, and AppMaster Builder populates the field with the path to the new COBOL project.

  5. On the Open Associated Perspective prompt, click Open Perspective.

    This opens the COBOL perspective and shows the COB_BLDRAPPL project in the COBOL Explorer view.

  6. Click Apply and Close.