IBM i Global

 View Only
Expand all | Collapse all

PDM0405 - Where can I find helpful documentation for substitution parameters in PDM

  • 1.  PDM0405 - Where can I find helpful documentation for substitution parameters in PDM

    Posted Tue March 14, 2023 06:34 AM
     Message ID . . . . . . :   PDM0405       Severity . . . . . . . :   30
     Date sent  . . . . . . :   03/14/23      Time sent  . . . . . . :   10:22:04
     Message type . . . . . :   Diagnostic
     From . . . . . . . . . :   TSTU          CCSID  . . . . . . . . :   65535
     From program . . . . . . . . . :   QUOSCRN
       From library . . . . . . . . :     QPDA
       Instruction  . . . . . . . . :     036A
     To program . . . . . . . . . . :   QUOSCRN
       To library . . . . . . . . . :     QPDA
       Instruction  . . . . . . . . :     036A
     Time sent  . . . . . . . . . . :   10:22:04,980794
     Message . . . . :   Substitution parameter &Z) in the command is not valid.
     Cause . . . . . :   The substitution parameter is not valid for a PDM
       user-defined option.
     Recovery  . . . :   Substitution values must be one of the following, preceded
       by an ampersand (&): A, B, C, D, E, F, G, H, J, L, N, O, P, R, S, T, U, V,
       W, X.
                  * * * * *   E N D   O F   L I S T I N G   * * * * *


    ------------------------------
    Ojasva Bhardwaj
    ------------------------------


  • 2.  RE: PDM0405 - Where can I find helpful documentation for substitution parameters in PDM

    IBM Champion
    Posted Tue March 14, 2023 08:34 PM
    Edited by Satid Singkorapoom Tue March 14, 2023 09:57 PM

    Dear Ojasva

    The information in the error message says it clearly that you were using PDM user-defined option and cannot use &Z (and several other alphabets).  It would be better if you could provide a description of this PDM user-defined option and the shortcut command that you used when encountering this error.

    If you did not create this PDM user-defined option, you need to find out who and ask why '&Z' is not valid for use. I think &Z is not in the default list of valid variables (&L = library name,  &N = object name, &T = object type, and so on).   What was your intention to use &Z?  If someone told you to use it, you need to ask that person as &Z is meaningless by default. I'm not sure if new substitution parameters can be created for use.

    I did a Google search with "ibm i pdm user-defined option" and found several entries about this : 

    https://www.rpgpgm.com/2014/02/pdm-user-defined-options.html

    https://www.nicklitten.com/pdm-user-defined-options/

    https://www.mcpressonline.com/operating-systems/ibm-i-os400-i5os/as400-basics-pdms-userdefined-options


    ------------------------------
    Education is not the learning of facts but the training of the mind to think. -- Albert Einstein.
    ------------------------------
    Satid S.
    ------------------------------



  • 3.  RE: PDM0405 - Where can I find helpful documentation for substitution parameters in PDM

    Posted Mon March 20, 2023 08:58 AM

    The IBM midrange as far back as System38 has excellent help built in. All (maybe that should be most nowadays) of the system commands have built in text and if a developer can be bothered, they can utilise the functionality to provide similar detailed help.

    It is contextual so it will offer help associated with the position of the cursor.

    For help with substitution values, go into either Create or Amend a user defined option, place the cursor on the command parameter and press F1 for help; this lists all of the available options and explains the differences (if there are any) when working with libraries, objects or source members.

    F20 (shift F8) will enlarge the help window... 



    ------------------------------
    Tony Davis
    ------------------------------