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



That's good Doug and I'm familiar with CMD programming but never done this
b4. Given the limitation of the CHOICEPGM, still how do u program it?


----- Original Message -----
From: "Douglas Handy" <dhandy1@bellsouth.net>
To: <midrange-l@midrange.com>
Sent: Friday, July 19, 2002 12:58 PM
Subject: Re: Programming Command - CMD


> Dare,
>
> >The question now is: How do you program the CHOICEPGM to do what I asked
in
> >my original posting.
>
> The short answer is that you really can't do that effectively, unless the
list
> of files is the library is known to be relatively small.  Most data
libraries
> will probalby have more files than the command prompter will accept from a
> choice program.
>
> Do you have any idea how many files are in the libraries?
>
> Secondly, as also mentioned here, the choice program is not told the
contents of
> any parameters, so you have no simple way of knowing which library to
supply the
> filenames for.
>
> The way you do that is by creating a Prompt Override Program (or POP), and
> making the library parameter a "key parameter".  This makes it get
prompted
> separately first, prior to asking for non-key parameters (like FILE in
this
> case).  Your POP would then have to write the library somewhere -- say a
data
> area in QTEMP -- and the choice pgm for the FILE keyword could then pull
the
> library name from the QTEMP data area.
>
> POP's are also described in the manual on how to define commands, and
somebody
> already posted that link.
>
> Even with the library name, your choice program will still have the size
> limitation.  And beyond that, the user can't directly select from the list
with
> the mouse or cursor -- they have to rekey the name from the list
displayed.
>
> Doug
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
> To post a message email: MIDRANGE-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
> or email: MIDRANGE-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>



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.