Exit flow example


Exits can be called several times for each space allocation request.

Related topic

The best way to describe the exit flow is to consider the worst case. For this example, assume that a user is about to allocate a new data set. Allocation of this data set will cause new applications to be added to the application database.

During CHECK processing, the space allocation request performs these steps:

  • Calls the select exit, which is used to determine if a space allocation request should be tracked
  • Calls the application code build exit twice for each application code

    The default application code construction rules are passed to the exit the first time. You can change the rules or bypass tracking this application code. The application code is passed to the exit the second time it is called. You can change the application code or bypass processing for this application.

  • Calls the default exit twice each time a new application is created

    The first call passes the application code of the default application. You can change the application code of the default application. The second call is made after the new application is built. You can change any field in the application record. On either call, you can choose not to track the space allocation request for this application code.

  • Calls the check exit for each application with the amount of space requested and the application record

    You can change the amount of space to be checked, skip the check, ignore the result, or reject the allocation.

During ADD processing, the space allocation request performs these steps:

  • Calls the select exit
  • Calls the application code build exit

    This call must generate the same application codes that the preprocessing call generated.

  • Calls the add exit for each application with the amount of space requested and the application record.

    You can change the amount of space to be updated or skip the updating of the application.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*