Testing EXECs with SHARED variables
Another technique you might use is to use the IMFEXEC VPUT statement to put variables into the SHARED variable pool instead of the LOCAL variable pool. For example, instead of using this statement:
REXX EXEC example:
IMFEXEC VPUT (WORD1 WORD2 WORD4) LOCAL
CLIST example:
IMFEXEC VPUT (WORD1 WORD2 WORD4) LOCAL
you can use the following statement:
REXX EXEC example:
IMFEXEC VPUT (WORD1 WORD2 WORD4) SHARED
CLIST example:
IMFEXEC VPUT (WORD1 WORD2 WORD4) SHARED
By placing the variables WORD1, WORD2, and WORD3 into the SHARED pool, you can verify the values that were substituted. Use the command
.D V SHARED
to see how the variables were resolved in the SHARED pool. After you have verified them, you can then adjust your EXEC to put the variables back to the LOCAL pool.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*