Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
![]() Coding a single parameter list, multiple token areas z/OS DFSMSrmm Application Programming Interface SC23-6872-00 |
|
This variation allows you to continue a previous subcommand after you have started another. You might need to use multiple token areas when your application program is designed to support a sequence of subcommand requests like the one that follows:
Figure 1 shows how you can use a single
parameter list and multiple tokens to identify work areas. The multiple
token areas allow the flexibility of continuing a previous subcommand
after starting another subcommand. Use the token you obtained from
the previous subcommand when you want to continue that subcommand.
Figure 1. Single parameter list, multiple token areas
Figure 1 shows how you can reuse resources. When your application program is finished with the first subcommand request, it can reuse the first token to begin a third request. When that token is reused to begin a new subcommand request, you cannot continue the previous request associated with that token. In Figure 1, the same output buffers are used for all subcommand requests. As a result, all of the output data in the output buffer must be processed before another request can be started or continued. To avoid this situation, you might write your application program to use multiple output buffers instead of a single output buffer. Figure 1 shows multiple releases using the OPERATION=RELEASE parameter. Instead of using multiple releases, you can specify the OPERATION=ENDALL once to free all resources associated with all tokens. See Figure 2 for an example of this method. Note: You do not specify the TOKEN parameter when you use OPERATION=ENDALL.
Your application program, however, is responsible for setting all
tokens to zeros to prevent them from being reused.
Figure 2. Releasing all resources
Your application program might encounter a resource constraint condition like short-on-storage before it issues the OPERATION=ENDALL. ![]() ![]() ![]() |
![]() |