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



The order of a PARM ca be set with the PROMPT parameter, IIRC.

Regards,
Carel Teijgeler

On 13-4-2013 0:10, Vern Hamberg wrote:
Allow me to add some more obfuscation! Hey - a CL obfuscation contest!

OK - the OP could maybe take advantage of setting the order of parameters in the PROMPT attribute. This setting lets you put MIN(n) parameters somewhere after the start of the display - they DO have to be at the start of the source.

I think I just saw this on maybe CPYFRMIMPF - TOFILE is required and positional 1 - FROMSTMF and FROMFILE are optional and positional 2 & 3, resp. And they appear on screen ahead of TOFILE, the required parameter.

Interesting stuff!

Vern

----- Original Message -----
On Fri, Apr 12, 2013 at 5:11 PM, Stone, Joel <Joel.Stone@xxxxxxxxxx> wrote:
I would like to build a command to return sysName and libName.

But, I would like the variables to be optional when using the command.

I would like the following to be functional:

GetEnvr &sysname &libname

Also

GetEnvr &libname

As Vern points out, I may have read too quickly. You could be asking
specifically about CMD issues, rather than CL program issues. So now
I'm going back and rereading your question. And what is now jumping
out at me is:

Are you trying to make the command callable by positional parameters?
If so, does your example mean that you want any call with one
parameter to retrieve the library, and any call with two parameters to
retrieve the system name in the first parameter and the library name
in the second? Or do you mean you want to be able to pass just one
parameter, and have that parameter be either system or library (chosen
by the caller)? (If yes to this last question, then I would imagine
you have to make the parameters keyword-only rather than positional.)

John


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.