z/OS DFSMS Macro Instructions for Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples of generate, list, and execute forms

z/OS DFSMS Macro Instructions for Data Sets
SC23-6852-02

Table 1 shows which forms of GENCB, MODCB, SHOWCB, and TESTCB should be used in reentrant/nonreentrant and shared/nonshared environments.

Table 1. Reentrant Programming
  Reentrant Nonreentrant
Shared MF=(L,address[,label]) MF=L
  MF=(E,address) MF=(E,address)
Nonshared MF=(G,address[,label]) Standard Form
The figure shows that:
  • To share parameter lists in a reentrant program, the remote-list form should be used with the execute form.
  • To share parameter lists in a nonreentrant program, the simple-list form should be used with the execute form.
  • If you do not intend to share parameter lists, the generate form should be used in reentrant programs and the standard form should be used for nonreentrant programs.

The following examples show how the generate, list, and execute forms work.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014