Previous Topic: Menu functionsNext Topic: Step 8:  Compile the Application


Step 7: Define a Task Code

A task code defines an entry point into an application. At run time, developers and users can execute an application by using the application's task code. An application can have more than one task code; each one can be associated with a different function in the application.

As an application developer, you must define at least one task code for an application before you can successfully create a load module for the application. When you define a task code, you name:

You use the Task Codes screen to define task codes for an application. You can access the Task Codes screen from the Response/Function List screen by pressing [PF5].

Define a task code as shown:

Defining the task code

                                   Task Codes                  Page  1 of  1  Application name:  XXXAPPL    Version:    1                Task Code            Function                   Drop (/)          1.    xxxdept              deptmenu                      _          2.    ________             ________                      _          3.    ________             ________                      _          4.    ________             ________                      _          5.    ________             ________                      _          6.    ________             ________                      _          7.    ________             ________                      _          8.    ________             ________                      _  Enter  F1=Help  F3=Exit  F4=Prev  F5=Next  F7=Bkwd  F8=Fwd

After you press [Enter], ADSA redisplays the Task Codes screen with a confirming message. An error message is returned if ADSA detects any errors. In this case, use the message to determine the problem. You can type over errors, and then press [Enter] again.

When you have defined a task code for the Department application, you can create a load module for the application as described below.