Getting Started


Creating a new program

To create a new program, do the following :

  1. From the VAGen Parts Browser, select VAGen Parts>Add/New.

    If you selected Add, select New Part.

  2. On the New VAGen Part window, in the Part name field, type sample.
  3. Select the Part type Program
  4. From the Package/Application drop-down list box, select tutorial.

Figure 45. New VAGen Part

New part

Program specifications and main functions are the elements that make up the basic structure of your program. Use the Program Editor to set global characteristics for the program and define the main functions.

For this tutorial, you will define a main transaction program with a working storage record and a map group. To define properties for the program you just created:

  1. From the Define menu, select Properties.
  2. Select Allow implicit data items and select OK.
  3. From the drop-down list box on the Program Editor, select Main Transaction-Nonsegmented.
  4. In the Add Map Group window, type ctest.
  5. Select OK.

    You've defined the program SAMPLE as a nonsegmented transaction and specified association with the map group CTEST.

Figure 46. Add Map Group

Figure addmapgr not displayed.

Now define a working storage record for this sample program. In the Program Editor:

  1. From the Define menu, select Specifications>Add Working Storage.
  2. In the Part name field, type cust-list-ws.
  3. Select OK.

    The name of the working storage record is displayed under Specifications in the Program Editor. The question mark beside it indicates that the record has not yet been defined.

Tip:You can also perform many tasks in the Program Editor using context menus. For example, you could have added this working storage record by clicking mouse button 2 on Specifications and selecting Add Working Storage to display the Add Working Storage window. You get different context menus in the Program Editor, depending on what you click on with mouse button 2. Feel free to experiment with the context menus in the tasks that follow.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]