Creating a business object from a data structure

Using the enterprise data discovery wizard, you create a business object representing a data structure.

Prerequisite: You should have a module and a program. In this set of steps, a COBOL program is used.
The enterprise data discovery wizard lets you create business objects for your services based on applications available locally. Though similar in use to the enterprise service discovery wizard, the enterprise data discovery wizard does not require you to go through the steps of connecting to an EIS system.
  1. Right-click your module and from the pop-up menu, select New > Enterprise Data Discovery. The Data Import window opens. Select the map you want from the data source to the business object. Note that the map can also specify multiple possible outputs. Browse to the source file. Click Next.
    Importing application
  2. The Importer page opens. Select the platform and code page required. Show Advanced lets you specify numerical format, endian characteristics, and compile options. Click Apply to get the data structure from the source file. Click Next.
    Getting the data structure
  3. The Saving Properties page opens specifying the names, styles and folder for the properties. Note that you can choose to change or create a new module at this point. Remember, at this point nothing has been generated. The name will be the selected data structure name if you do not change it. For our example, we changed it to DeptPersonnelInfo. The default namespace is taken from the formula specified in the Default Namespace preference under Business Integration in the Preferences page. Specifying a folder is recommended since otherwise all generated files will be put in the root module folder. Generation style lets you specify a variation of generated names. Click Finish to complete the generation of your business object.
    Saving the properties of a business object
  4. Selecting the business object the enterprise data discovery wizard has produced, you can open it in the business object editor to see it or edit it.
    Business object created from the enterprise data discovery wizard
You have discovered a data structure in a program and generated a business object from it. See Business objects from data structures to see what you can do in the assembly editor with the business objects you create from this wizard and the enterprise service discovery wizard.

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.