Previous Topic: Automatic Parameter Interface Generation

Next Topic: The Newly Created Function

Original Contexts

Edit Customer is a function of the type EDTFIL.

Original Contexts

In this example, the code in USER: Validate subfile record fields is placed in a wrapper. This example shows parameter substitution, not application design.

This code populates CTL.Customer Code with RCD.Customer Code, sets RCD.Customer Code to CON.A, and checks whether CTL.Billing Location is equal to WRK.Delivery Location. If it is, WRK.Customer Check Flag is set to Y and PGM.*Sbmjob receives the override string CON.*BLANK.

  1. Press F5 to select User Points, and enter W for the relevant one.
  2. Choose the function name Update Override String.

The function and the parameter interface are created and contexts are substituted for any contexts unavailable to the EXCEXTFUN. CTL is the first unavailable context, so an array is created for this function. The array name consists of the first 22 characters of the function name plus PAR at the end.