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.
------------------------------
Original Message:
Sent: Tue March 14, 2023 06:33 AM
From: Ojasva Bhardwaj
Subject: PDM0405 - Where can I find helpful documentation for substitution parameters in PDM
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
------------------------------