× 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.



You need to put the CHOICEPGM() on both the PARM and the QUAL statements
if you want it to dynamically build the choices in command prompt view
and parameter prompt view.

I would create a CL program with DMPCLPGM and see the value of the
command parameter that is passed in. In command prompt position 21 will
be 'C' and in parameter prompt position 21 will be 'P'.

Thanks, Matt
-----Original Message-----
From: Paul Jackson [mailto:paulgjackson@xxxxxxxxx]
Sent: Monday, November 03, 2008 7:07 PM
To: MIDRANGE-L@xxxxxxxxxxxx
Subject: Choice program problem on a QUAL stmt

I have the following test command:

CMD PROMPT('test file driven prompting')
PARM KWD(FILE) TYPE(FILE1) MIN(1) PROMPT('File:' 1)
FILE1: QUAL TYPE(*NAME) LEN(10) MIN(1) CHOICE(*PGM) +
CHOICEPGM(TSTCHCPGM)
QUAL TYPE(*NAME) LEN(10) DFT(*LIBL) +
SPCVAL((*LIBL)) PROMPT('Library:')

But I am finding that I cannot get the choice program to invoke when I
place a "?" in the file name field. If I have a stand alone PARM for
the file name then the choice program will work correctly. Is there
something special about having a choice program on the first QUAL
statement?

Thanks in advance for any suggestions.

Paul


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.