Guidelines for reusing work areas

Use the following guidelines when defining whether to reuse workareas. The WorkArea card setting depends upon the map setting for WorkSpace Location and PageSize and PageCount settings.

  • WorkSpace Location setting. If the map setting for WorkSpace is File, the input card's work area can be reused. If the map setting for WorkSpace is Memory, the input card's work area can be reused only when the map is initiated using the RUN function. It cannot be reused from an API.
  • WorkSpace PageSize and PageCount settings. When reusing work files, the paging configuration (page size and number of pages) for the first execution and subsequent executions of the map must be the same.

    For example, if the first execution (when the work files are created) uses a paging configuration of eight pages of 64K each, the subsequent executions (where the work files are reused) must use the same paging settings, in this case eight pages of 64K each.

  • For One Map Only. The WorkArea card setting applies to a given map only. For example, it does not apply to two different maps that using the same input.
  • FetchAs = Integral. When a map is executed and the input card FetchAs = Integral, the work area is automatically reused for each burst. If WorkArea = Reuse, that work area is saved on completion of the map execution.
  • FetchAs = Burst. When the input card has a FetchAs of Burst, a new work area is created for each burst. If WorkArea = Reuse, the last work area is saved on completion of the map execution.