Certain macros, called alternative list form macros, require a
somewhat different technique for using the list form. With these macros,
you do not move the area defined by the list form into virtual storage
that you have obtained; instead, you place the area defined by the
list form into a DSECT. Also, it is the list form, not the execute
form, that you use to specify the address parameter that identifies
the address of the storage for the parameter list. Note that no modify
form is available for these macros.
You can use the macro forms for the alternative list form macros
as follows:
- Use the list form of the macro to define an area of storage that
the execute form can use to store the parameters. As with other macros,
do not code the list form in the instruction stream of your program.
- In the instruction stream, code a GETMAIN or a STORAGE macro to
obtain virtual storage for the list form expansion.
- Place the area defined by the list form into a DSECT that maps
a portion of the virtual storage you obtained.
- Invoke the macro by issuing the execute form of the macro. The
address parameter specified on the list form references the parameter
list in the virtual storage area that you obtained.