Previous Topic: CA 2E and the Application Development Life CycleNext Topic: Defining Requirements


Prerequisites for Using CA 2E

Before starting this tutorial, make sure the following conditions are satisfied:

ADDLIBLE Y2SY
ADDLIBLE Y1SY

YCRTMDLLIB MDLLIB(MYMDL) OBJPFX(MY)+
SYSTEXT(‘My Model’) DSNSTD(*CUATEXT)

This command allows you to create your model interactively. You can also do this as a batch process. In this example the design standard, *CUATEXT, has been specified so that all functions that include interactive panel displays will be presented with either Action Bars or Windows. The normal default for the design standard is *CUAENTRY.

Note: If someone else creates your model, be sure they read the above paragraph and set the DSNSTD parameter to *CUATEXT; otherwise, the tutorial will not work properly.

The message "Model library MYMDL created" should appear following successful completion of the command. The use of this command is only necessary when you are creating a new CA 2E design model. The next topic discusses how to access an existing CA 2E design model.

The YCRTMDLLIB command also creates a library to contain the source and application objects that you will generate from your CA 2E design model. The name of this library is given by the GENLIB parameter, which in this case defaults to the name MYGEN. Furthermore it creates a Toolkit Library list with the same name as the CA 2E design model library.

YSTRY2 MYMDL

Type the command as shown.

Press Enter.

The CA 2E Main menu appears. The first panel of the CA 2E Main Menu provides a set of Design Model options and access to CA 2E commands grouped according to function.

Type 1 in the command entry line as shown to display the CA 2E Designer (*DSNR) Menu.

Press Enter.

The first panel of the CA 2E Designer (*DSNR) Menu displays. This menu provides a list of tasks available to users with *DSNR authority. Type 1 in the command entry line as shown to enter your CA 2E design model for editing.

Press Enter.

Your CA 2E design model will now be loaded. A CA 2E window with the message Starting CA 2E Session appears. The load process may take several seconds.

When it is finished the Edit Database Relations panel will appear.

In general, you can begin working with your model at this point. However, if this is the first time you entered your tutorial model, read and complete the following instructions before continuing.

YSTRY2 MYMDL MENU(DSNR) Bypass the Designer (*DSNR) Menu and directly enter your model for editing using the Toolkit Change Library List (YCHGLIBL) command and the Edit Model (YEDTMDL) command from any i OS Command Entry line.

YCHGLIBL MYMDL

YEDTMDL

The Y2 command is a short form of the YEDTMDL command.

YCHGLIBL MYMDL

Y2

YCLRMDL MDLLIB(MYMDL) GENLIB(*GENLIB)

If you run this command, your CA 2E design model will still exist, but everything you have added to the design model will be deleted.