× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On the PAM there is a keyword that reference PMTCTL. I do not see that in yours.

Promtp the PARM and on the third screen (IIRC) of key words there is a PMTCTL key word.

Regards,

Carel Teijgeler


Op 11-4-2018 om 21:25 schreef dlclark@xxxxxxxxxxxxxxxx:
"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 04/11/2018
03:14:01 PM:
'T is been awhile.

But you cannot have 2 prompt controls on a PARM, IIRC. Can you show the
PARM on which those PMTCTL should work? Or have you forgiiten to fill
that key word?

So, if the compile works, then the second one will be ignored.

Compiles with warnings, only (creates the object). But not even a
warning about the second PMTCTL referencing the same parameter name. Is
such a restriction documented somewhere?

Keep in mind, though... It does work as long as there is a value
in the referenced parameter (the first one). It does alternately remove
the second parameter or remove the third parameter like I would expect
when I change the value of the first parameter. The only thing I didn't
expect is that it would show both the second and third parameters when the
first parameter is empty.

Now, there are actually more parameters than this in my command.
But, I have stripped it down to just the three parms I am talking about.


PARM KWD(MSGID) TYPE(*NAME) LEN(7) MIN(1) +
SPCVAL((*LAST)) PROMPT('Message identifier')
NOBODY: PMTCTL CTL(MSGID) COND((*NE '*LAST') (*EQ ' ')) +
NBRTRUE(*GT 0) LGLREL(*OR)
PARM KWD(BODY) TYPE(*CHAR) LEN(10) RSTD(*YES) +
DFT(*HLPTEXT) SPCVAL((*FULLMSG) (*MSGTEXT) +
(*HLPTEXT)) PMTCTL(NOBODY) +
PROMPT('Email body')
LASTHDR: PMTCTL CTL(MSGID) COND((*EQ '*LAST')) NBRTRUE(*EQ 1)
PARM KWD(HDRMSGID) TYPE(*NAME) LEN(7) DFT(*DFT) +
SPCVAL((*DFT ' ')) MIN(0) PMTCTL(LASTHDR) +
PROMPT('Header message identifier')

Sincerely,

Dave Clark


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.