An example showing how to build a parameter list incrementally

This example illustrates a parameter list that is built incrementally. The initialization of the parameter list, using the CLEAR option, the building of the parameter list, and the GETMAIN call are separated into discrete steps.

         DFHSMMCX CLEAR
⋮
         DFHSMMCX GET_LENGTH(100)
⋮
         DFHSMMCX CALL,                                                 *
               IN,                                                      *
               FUNCTION(GETMAIN),                                       *
               GET_LENGTH(*),                                           *
               SUSPEND(NO),                                             *
               INITIAL_IMAGE(X'00'),                                    *
               STORAGE_CLASS(USER),                                     *
               OUT,                                                     *
               ADDRESS((R6)),                                           *
               RESPONSE(*),                                             *
               REASON(*)

Important

You must set your parameters using only the XPI functions.