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



Yes, the default on a character constant can only be 32 characters. So,
while you can enter a lot more by changing the character size, when you
use the DFT keyword you are limited to 32 characters. And, true they can
override that and enter more.
But if you want them to see a good representative sample so you want to
use something like
DFT('sudo /sbin/service jboss-as stat')
But only bigger you can't.
You can't even use the suggested work around of *DEFAULT since SPCVAL
still won't let you put a character string longer than 32 characters.
Unless you want to handle that in the program.
And trying to stick that off to the right as 'choice text' is limited down
to 30 characters.
Putting it on the left as prompt text is also limited to 30 characters.

You probably want to continue to do the SWPUSRPRF in the CPP and not in
the CMD itself. But if you really want to push the limits I don't know if
CHOICEPGM or PMTCTL on the PARM command would help. Or the PMTOVRPGM on
the CMD command itself.
I do know that BRMS really pushes the envelope on these. One reason why
sometimes typing in a command and simply hitting F4 takes so stinking long
just to see the prompted command when using their commands.



Rob Berendt

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.