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



Hi John

If I understand what you want to do correctly you want to be able to prompt
a command that allows the entering of text, and has an outqueue parameter
that defaults to *ALL (for your 6 outqueues) but also allows selection of
individuals outqueues.

I guess the text part is easy depending on how much text you have to enter.
Just have a TEXT parameter on your command and type away to your hearts
content, making sure to have it match the length defined in your program.
You may be able to break this up to make it more intuitive (e.g. location,
special instructions, other parameters on the command)

As to the outqueue selection you may want to look into creating a CHOICE
program for your command. This allows you to programmatically (and
therefore somewhat dynamically) return the names of the outqueues without
hardcoding them into your command. Unfortunately you also need to write a
validity checking routine to match this list as it doesn't seem that the
command prompter automatically restricts you to this list which I find
something of an oversight (or I don't understand it correctly).

Of course you could always just specify the outqueue names as allowable
values in the command prompt and if it is not going to change a lot this
will probably do fine.

You can also make the command parameter a list parameter if you will be
sending prints to more than one (but not all) outqueues.

Hope this helps

Regards
Evan Harris

<SNIP>
>From the command line the users would be able to enter a custom command that
>can call a program. I need information of how to write a CL that would allow
>for variable text and would allow for the selection of which outq the infor
>should be sent to. The default should be all outqs with the ability to alter
>that selection.
</SNIP>



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.